MySQL创建Function时报的1418错误代号解决办法

来源:互联网 发布:ucloud云计算 2016 09 编辑:程序博客网 时间:2024/06/05 01:19

错误码: 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)

解决办法如下:

如果在MySQL中create function的时候出现 1418错误:那么只需要执行set global log_bin_trust_routine_creators=1;

1. mysql> SET GLOBAL log_bin_trust_function_creators = 1;
2. 系统启动时 --log-bin-trust-function-creators=1
3. 在my.ini(linux下为my.conf)文件中 [mysqld] 标记后加一行内容为 log-bin-trust-function-creators

阅读全文
1 0
原创粉丝点击