ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.

mysql 导入数据出现问题

[root@mar data]# mysql -uroot -p'1' --socket=/tmp/mysql3306.sock   </data/all.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.

解决方法

reset master;

问题解决

[root@mar data]# mysql -uroot -p'1' --socket=/tmp/mysql3306.sock   </data/all.sql
mysql: [Warning] Using a password on the command line interface can be insecure.

 

posted on 2020-11-18 10:32  InnoLeo  阅读(1245)  评论(0编辑  收藏  举报