mysql2redis
mysql2redis copied to clipboard
A UDF(user defined functions) plugin for MySQL, which can be used for pushing data to Redis
1,install error: [root@localhost mysql2redis]# ./install.sh Compiling the MySQL UDF gcc -Werror -O2 `/usr/bin/mysql_config --include` -I/usr/local/include -I. -fPIC -shared -rdynamic lib_mysqludf_redis.c utils.c\ -lhiredis -L`/usr/bin/mysql_config --plugindir` -o `/usr/bin/mysql_config --plugindir`/lib_mysqludf_redis.so MySQL UDF compiled...
i installed the hiredis and mysql_json_udf,but when i run the install.sh,and i got the error result: gcc -Werror -O2 `/usr/bin/mysql_config --include` -I/usr/local/include -I. -fPIC -shared -rdynamic lib_mysqludf_redis.c utils.c\ -lhiredis -L`/usr/bin/mysql_config...
Like as below: mysql> select @a := json_object(topic as topic) from test limit 1; +-----------------------------------+ | @a := json_object(topic as topic) | +-----------------------------------+ | {"topic":"你 我 他 她"} | +-----------------------------------+...
Hi, all I think there is no need to make a tcp connection to redis server everytime you execute a udf function, a connection pool would be great for performance....