If the server is a replication master and you want to avoid replicating the content to replication slaves, use this command:

mysql --init-command="SET sql_log_bin=0" mysql < file_name


[root@localhost backup]# mysql -f --init-command='set sql_log_bin=0' < test.sql
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.









相关文章:

  • 2022-02-01
  • 2021-09-26
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-10-26
  • 2021-05-20
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-11-23
相关资源
相似解决方案