mysqldump恢复备份出现的问题

发布时间:2020-08-06 05:15:54 作者:苏黎世1995
来源:网络 阅读:1296
今天使用MySQL workbench导入数据的时候出现了以下报错:

查找资料后解决:
参考链接:http://blog.csdn.net/cug_jiang126com/article/details/49945643 http://blog.csdn.net/topasstem8/article/details/8216740/

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
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)
推荐阅读:
  1. 【MySQL】mysqldump备份与恢复
  2. mysqldump如何恢复备份

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

mysqldump gtid 错误

上一篇:window下Ionic环境安装

下一篇:memcache 主从架构 详解

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》