MySQL 5.6 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.XXXXXX' at position XXXXXXXXX

VM上のスレーブをコピーして、スレーブ2を作成。

スレーブ2のホスト名およびIPアドレス、my.cnfのserver-idを変更後、

mysqlを起動したら、

以下のエラーが止まらない事象が発生して小一時間はまったので、対処方法をメモ。

 

[Note] Slave: received end packet from server, apparent master shutdown:
[Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.XXXXXX' at position XXXXXXXXX
[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.

対処:スレーブ2 data_dir内のauto.cnfを削除。

   →auto.cnf内のserver-uuidが重複していたらしい。。

 

 

実践ハイパフォーマンスMySQL 第3版

実践ハイパフォーマンスMySQL 第3版