如果在create function的时候有1418的错语的时候:那么只需要执行set global
log_bin_trust_routine_creators=1;
然后怎么create function都不会有问题(当然,你的function必段正确哦),这是mysql的一个bug,搞
不懂为什么,反正这样做就OK了.
另外,也可以直接在配置文件my.cnf中添加如下行[mysqld]log_bin_trust_routine_creators=1;
这个命令可以在sqleditor的环境中运行,并不需要重新启动服务哦。
OR
解决方法如下:
1. mysql> SET GLOBALlog_bin_trust_function_creators = 1;
2. 系统启动时–log-bin-trust-function-creators=1
3. 在my.ini(linux下为my.conf)文件中[mysqld] 标记后加一行内容为 log-bin-trust-
function-creators
Advertisement