mysql error 1201_ERROR 1201 (HY000): Could not initialize master info structure; .....
配置mysql主從復制,start slave是報錯:ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log
原因:之前做過主從復制
解決辦法:
mysql> stop slave;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> reset slave;
Query OK, 0 rows affected (0.00 sec)
mysql> CHANGE MASTER TO
-> MASTER_HOST='192.168.122.10',
-> MASTER_PORT=3306,
-> MASTER_USER='repl',
-> MASTER_PASSWORD='repl',
-> MASTER_LOG_FILE='mysql-bin.000015',
-> MASTER_LOG_POS=192;
Query OK, 0 rows affected (0.14 sec)
mysql> start slave;
Query OK, 0 rows affected (0.07 sec)
來自 “ ITPUB博客 ” ,鏈接:http://blog.itpub.net/30373263/viewspace-2121795/,如需轉載,請注明出處,否則將追究法律責任。
總結
以上是生活随笔為你收集整理的mysql error 1201_ERROR 1201 (HY000): Could not initialize master info structure; .....的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 迎战校招训练题
- 下一篇: 办公计算机配件,办公电脑加装傲腾如丝般顺