关于mysql创建、导入函数和存储过程报#1418错问题解决

来源:互联网 发布:2016淘宝免费开店流程 编辑:程序博客网 时间:2024/06/10 06:41

在创建和导入函数和存储过程报:#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)的错误。

解决方法如下3种:

1.在客户端上执行SET GLOBAL log_bin_trust_function_creators = 1,或者SET GLOBAL log_bin_trust_function_creators =true;
2.MySQL启动时,加上--log-bin-trust-function-creators选贤,参数设置为1;
3.在MySQL配置文件my.ini或my.cnf中的[mysqld]段上加log-bin-trust-function-creators=1。

1 0
原创粉丝点击