• notice
  • Congratulations on the launch of the Sought Tech site

MySQL5.6 Master-Slave Replication ERROR 1776 (HY000): Parameters MASTER_LOG_FILE

Both the master and the slave have gtid turned on, and encountered a problem when setting the slave library

mysql> CHANGE MASTER TO MASTER_HOST=‘xxx’,MASTER_USER='replicant',MASTER_PASSWORD=‘xxx’, MASTER_LOG_FILE='bin.000050', MASTER_LOG_POS=191;
ERROR 1776 (HY000): Parameters MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE and RELAY_LOG_POS cannot be set when MASTER_AUTO_POSITION is active.

The solution

mysql>  change master to master_auto_position=0;
Query OK, 0 rows affected (0.34 sec)

mysql>  CHANGE MASTER TO MASTER_HOST=‘xxx’,MASTER_USER='replicant',MASTER_PASSWORD=‘xxx’, MASTER_LOG_FILE='bin.000050', MASTER_LOG_POS=191;
Query OK, 0 rows affected, 2 warnings (0.51 sec)

mysql> START SLAVE;
Query OK, 0 rows affected (0.08 sec)

mysql> SHOW SLAVE STATUS \G


Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

cheap atorvastatin & lt;a href="https://lipiws.top/"& gt;buy atorvastatin 20mg generic& lt;/a& gt; order lipitor 10mg online cheap

Fqhuxj

2024-03-08

Leave a Reply

+