forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
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
|