Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8536767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:44:40+00:00 2026-06-11T10:44:40+00:00

I am using MySQL UDF function sys_exec for calling Java program inside a trigger

  • 0

I am using MySQL UDF function sys_exec for calling Java program inside a trigger of MySQL. Can you please provide me the information about how I pass argument to sys_exec so that it will call Java program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:44:41+00:00Added an answer on June 11, 2026 at 10:44 am

    You can use this link to use sys_exec function. It says,

    sys_exec sys_exec takes one command string argument and executes it.
    Syntax

    sys_exec(arg1) Parameters and Return Values

    arg1 : A command string valid for the current operating system or
    execution environment. returns An (integer) exit code returned by the
    executed process. Installation

    Place the shared library binary in an appropriate location. Log in to
    mysql as root or as another user with sufficient privileges, and
    select any database. Then, create the function using the following DDL
    statement: CREATE FUNCTION sys_exec RETURNS INT SONAME
    ‘lib_mysqludf_sys.so’;
    The function will be globally available in all databases. The deinstall the function, run the following statement: DROP FUNCTION
    sys_exec;

    For executing Java program you should fill arg1 as "java <absolute path to precompiled program to run>".

    Note: path to java should be configured before hand.

    Hope it helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using MySQL, How do I import a user defined database function from one db
Using mysql 5.5.2 on windows (Wamp) I'm writing a Java application that use several
Using mysql 5.1.41 and innodb I'm doing some data import, but can't use load
Using MySQL & Java Script I want to make a mysql connection in Java
(Using MySQL 4.1.22) I can't get this query of mine to use an index
Using mysql, c#.net, Java Script I have the web application, i want to create
I'm trying to learn and use SP(Stored Procedure) and UDF(User Defined Function) with MySQL
How do I create a UDF for MySQL using Delphi? Does anyone have any
Using MySQL. How can I find the average of the min_amount and max_amount columns
Using MySQL , I can do something like: SELECT hobbies FROM peoples_hobbies WHERE person_id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.