ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA
Posted hankyoon
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA相关的知识,希望对你有一定的参考价值。
在mysql 5.7版本中,备份迁移数据库的时候,还原时提示如下报错信息
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty
当前GTID_EXECUTED参数已经有值
解决方法:
方法一:reset mater
这个操作可以将当前库的GTID_EXECUTED值置空
方法二:--set-gtid-purged=off
在dump导出时,添加--set-gtid-purged=off参数,避免将gtid信息导出
mysqldump -uroot -p --set-gtid-purged=off -d yoon > yoon.sql
以上是关于ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA的主要内容,如果未能解决你的问题,请参考以下文章
ERROR 2006 (HY000) at line 1: MySQL server has gone away
ERROR 23 (HY000) at line 29963: Out of resources when opening file
ERROR 1007 (HY000) at line 29: Can‘t create database ‘qz‘; database exists
mysql登陆时出现ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication
主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea
mysql恢复和数据导入的问题(ERROR 2006 (HY000) at line 1016: MySQL server has gone away)