db / 未分类 · 2012年11月13日

mysql 创建函数时出现 Error Code : 1418 错误解决办法

mysql 创建函数时出现 Error Code : 1418 错误解决办法
今天,帮海岛配置了一个服务器,程序老是说 DB有点问题
mysql ERROR 1418 (HY000):you *might* want to use the less safe log_bin_trust_function_creators variable
  解决方法如下:
  1. mysql> SET GLOBAL log_bin_trust_function_creators = 1;
  2. 系统启动时 –log-bin-trust-function-creators=1
  3. 在为my.conf文件中 [mysqld] 标记后加一行内容为 log-bin-trust-function-creators
这个命令可以在sql editor的环境中运行,并不需要重新启动服务哦。
http://dev.mysql.com/doc/refman/5.1/en/stored-programs-logging.html
http://www.linuxidc.com/Linux/2010-10/29338.htm