mysql创建函数失败的解决

阅读更多

创建时异常日志:

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)

 

度娘了解决方案:

 

解决方法如下:
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 抄自度娘 https://zhidao.baidu.com/question/460606488.html

你可能感兴趣的:(mysql创建函数失败的解决)