An data analysis extension for MySQL server using MySQL loadable function
- MySQL community server >= 8.0.0
- GSL >= 2.5
Make sure you have the mysql_config
command. You can install it via yum install mysql-devel
(on CentOS)
Otherwise, you have to modify the INC
and PLUGIN_DIR
variable in Makefile with your path to mysql (/usr/local/mysql
)
INC = -I/usr/local/mysql/include
PLUGIN_DIR = /usr/local/mysql/lib/plugin
-
Compile the source files via
make
make
-
Install the library to MySQL
sudo make install
-
Install/Uninstall functions from MySQL
mysql -u root -p < install.sql mysql -u root -p < uninstall.sql
-
Launch MySQL server with
--binary-as-hex=0
flag. (reference)mysql -u root -p --binary-as-hex=0