qileilove

blog已经转移至github,大家请访问 http://qaseven.github.io/

解决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) 

(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 

posted on 2012-06-15 15:58 顺其自然EVO 阅读(258) 评论(0)  编辑  收藏 所属分类: 数据库


只有注册用户登录后才能发表评论。


网站导航:
 
<2012年6月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

导航

统计

常用链接

留言簿(55)

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜