c8a63c112e
with the operating system from MySQL: sys_eval - executes an arbitrary command, and returns it's output. sys_exec - executes an arbitrary command, and returns it's exit code. sys_get - gets the value of an environment variable. sys_set - create an environment variable, or update the value of an existing environment variable. Use lib_mysqludf_sys_info() to obtain information about the currently installed version of lib_mysqludf_sys. WWW: http://www.mysqludf.org/lib_mysqludf_sys PR: ports/163216 Submitted by: David Cornejo <dave@dogwood.com>
24 lines
822 B
Text
24 lines
822 B
Text
|
|
To add the custom functions to your MySQL server use the following SQL:
|
|
(These function can be dangerous, you should install only the functions
|
|
you need):
|
|
|
|
USE mysql;
|
|
|
|
CREATE FUNCTION
|
|
lib_mysqludf_sys_info RETURNS string SONAME 'lib_mysqludf_sys.so';
|
|
CREATE FUNCTION sys_get RETURNS string SONAME 'lib_mysqludf_sys.so';
|
|
CREATE FUNCTION sys_set RETURNS int SONAME 'lib_mysqludf_sys.so';
|
|
CREATE FUNCTION sys_exec RETURNS int SONAME 'lib_mysqludf_sys.so';
|
|
CREATE FUNCTION sys_eval RETURNS string SONAME 'lib_mysqludf_sys.so';
|
|
|
|
To deinstall:
|
|
|
|
DROP FUNCTION IF EXISTS lib_mysqludf_sys_info;
|
|
DROP FUNCTION IF EXISTS sys_get;
|
|
DROP FUNCTION IF EXISTS sys_set;
|
|
DROP FUNCTION IF EXISTS sys_exec;
|
|
DROP FUNCTION IF EXISTS sys_eval;
|
|
|
|
For function descriptions, see the following webpage:
|
|
http://www.mysqludf.org/lib_mysqludf_sys
|