错误码: 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
解决MySQL错误1418
本文介绍了解决MySQL创建函数时遇到的错误1418的方法,包括设置全局变量log_bin_trust_function_creators、在系统启动时指定配置选项以及在my.ini或my.conf文件中添加相应设置。
3182

被折叠的 条评论
为什么被折叠?



