yum install mysql-devel
yum install git
git clone https://github.com/mysqludf/lib_mysqludf_sys
cd lib_mysqludf_sys/
修改 Makefile內容
gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib64/mysql/plugin/lib_mysqludf_sys.so -fPIC
make
mysql -u root mysql < lib_mysqludf_sys.sql
沒有留言:
張貼留言