码迷,mamicode.com
首页 > 数据库 > 详细

mysql create function error and solution way.

时间:2015-05-21 14:08:35      阅读:128      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!