现在的位置: 首页 > 综合 > 正文

解决mysql不能创建函数

2013年07月26日 ⁄ 综合 ⁄ 共 375字 ⁄ 字号 评论关闭

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)

(0 ms taken)

解决方法如下:

方法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

抱歉!评论已关闭.