MySQL 无法创建自定义函数解决办法
2012-08-31 21:24 DeguangLi 阅读(593) 评论(0) 收藏 举报MySQL 创建函数时提示:
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)
貌似跟安全有关系,要创建函数必须将
log_bin_trust_function_creators 设置为ON,默认是OFF,表示不信任函数创建者.
查看这个函数的值:
show variables like '%func%';
设置为ON
set global log_bin_trust_function_creators=1;
浙公网安备 33010602011771号