mysqldump恢复备份出现的问题
今天使用MySQL workbench导入数据的时候出现了以下报错:
查找资料后解决:
参考链接:http://blog.csdn.net/cug_jiang126com/article/details/49945643 http://blog.csdn.net/topasstem8/article/details/8216740/
创新互联公司网站建设公司,提供成都网站设计、网站制作、外贸营销网站建设,网页设计,建网站,PHP网站建设等专业做网站服务;可快速的进行网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,是专业的做网站团队,希望更多企业前来合作!
- 问题1:
16:09:51 Restoring D:\Files\Documents\dumps\测试.sql
Running: mysql.exe --defaults-file="c:\users\xwjr\appdata\local\temp\tmp1acjjn.cnf" --protocol=tcp --host=127.0.0.1 --user=root --port=3306 --default-character-set=utf8 --comments --database=xwjr_server < "D:\\Files\\Documents\\dumps\\测试.sql"
ERROR 1840 (HY000) at line 26: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.
Operation failed with exitcode 1
16:09:52 Import of D:\Files\Documents\dumps\测试xwjr_server.sql has finished with 1 errors
解决办法:
reset master
- 问题2:
16:09:23 Restoring D:\Files\Documents\dumps\测试.sql
Running: mysql.exe --defaults-file="c:\users\xwjr\appdata\local\temp\tmpenrr12.cnf" --protocol=tcp --host=127.0.0.1 --user=root --port=3306 --default-character-set=utf8 --comments --database=xwjr_server < "D:\\Files\\Documents\\dumps\\测试.sql"
ERROR 1418 (HY000) at line 2395: 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)
Operation failed with exitcode 1
16:09:40 Import of D:\Files\Documents\dumps\测试.sql has finished with 1 errors
- 解决办法:
mysql> set global log_bin_trust_function_creators=TRUE;
Query OK, 0 rows affected (0.00 sec)
分享题目:mysqldump恢复备份出现的问题
URL链接:http://hbruida.cn/article/gpihop.html