我使用了keepalived + proxy + mysql。
站長:192.168.10.1
奴隸:192.168.10.2
主-VIP:192.168.10.100
當我使用CHANGE MASTER TO MASTER_HOST='192.168.10.1'...
,複製是確定的,當我使用CHANGE MASTER TO MASTER_HOST='192.168.10.100'...
,從I/O無法連接到主,和我的錯誤是這樣的:mysql複製錯誤:從站I/O:錯誤連接到主
150522 15:21:50 [ERROR] Slave I/O: error connecting to master '[email protected]:3307' - retry-time: 60 retries: 86400, Error_code: 2003
150522 15:21:50 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000001' at position 107, relay log './mmm-relay-bin.000001' position: 4
在奴隸,我用mysql -urepl -pslavepass -h192.168.10.100 -P3307
,我可以登錄該數據庫,爲什麼從I/O無法連接到高手?