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;
要执行Java程序,您应该将arg1填充为"java "。
注意:应该事先配置java的路径。
希望能帮助到你...