Chinaunix首页 | 论坛 | 博客
  • 博客访问: 11706
  • 博文数量: 3
  • 博客积分: 65
  • 博客等级: 民兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-21 13:54
文章分类

全部博文(3)

文章存档

2015年(1)

2012年(2)

我的朋友
最近访客

分类: Mysql/postgreSQL

2015-08-18 16:38:19

执行mysql备份的脚本可能会遇到以下错误:

The following error has occurred (3020, 1):
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)
Do you want to ignore error and continue?

解决办法:

点击(此处)折叠或打开

  1. mysql> show variables like '%func%';
  2. +---------------------------------+-------+
  3. | Variable_name | Value |
  4. +---------------------------------+-------+
  5. | log_bin_trust_function_creators | OFF |
  6. +---------------------------------+-------+
  7. 1 row in set (0.00 sec)
  8. mysql> set global log_bin_trust_function_creators=1;
  9. Query OK, 0 rows affected (0.00 sec)
  10. mysql> show variables like '%func%';
  11. +---------------------------------+-------+
  12. | Variable_name | Value |
  13. +---------------------------------+-------+
  14. | log_bin_trust_function_creators | ON |
  15. +---------------------------------+-------+
  16. 1 row in set (0.00 sec) 
  17. mysql>


阅读(138) | 评论(0) | 转发(0) |
0

上一篇:tomcat制定虚拟目录

下一篇:没有了

给主人留下些什么吧!~~