首页 > 数据库技术 > 详细

mysql create function error and solution way.

时间:2015-05-21 14:05:28      阅读:206      评论:0      收藏:0      [点我收藏+]

Error Code: 1418. This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable

reason :

  mysql的设置默认是不允许创建函数


解决办法1:

执行:

SET GLOBAL log_bin_trust_function_creators = 1;

 

解决办法2:

在my.cnf里面设置

log-bin-trust-function-creators=1

 

mysql create function error and solution way.

原文:http://www.cnblogs.com/shouwangzhe-/p/4519536.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!