《MYSQL數據庫mysql數據庫主從復制添加第N個從庫》要點:
本文介紹了MYSQL數據庫mysql數據庫主從復制添加第N個從庫,希望對您有用。如果有疑問,可以聯系我們。
#1 停止 mysql數據庫的從庫,鎖表,
???? 記住 Read_Master_Log_Pos: 與 Master_Log_File: (紅色字)
mysql> stop slave;
mysql> flush tables with read lock;
mysql> show slave statusG;
*************************** 1. row ***************************
?????????????? Slave_IO_State:
????????????????? Master_Host: 192.168.6.53
????????????????? Master_User: dongnan
????????????????? Master_Port: 3306
??????????????? Connect_Retry: 60
????????????? Master_Log_File: mysql-bin.000097
????????? Read_Master_Log_Pos: 19157395
?????????????? Relay_Log_File: zabbix-slave-relay-bin.000185
??????????????? Relay_Log_Pos: 11573578
??????? Relay_Master_Log_File: mysql-bin.000097
???????????? Slave_IO_Running: No
??????????? Slave_SQL_Running: No
????????????? Replicate_Do_DB:
????????? Replicate_Ignore_DB:
?????????? Replicate_Do_Table:
?????? Replicate_Ignore_Table:
????? Replicate_Wild_Do_Table:
? Replicate_Wild_Ignore_Table:
?????????????????? Last_Errno: 0
?????????????????? Last_Error:
???????????????? Skip_Counter: 0
????????? Exec_Master_Log_Pos: 19157395
????????????? Relay_Log_Space: 19142103
????????????? Until_Condition: None
?????????????? Until_Log_File:
??????????????? Until_Log_Pos: 0
?????????? Master_SSL_Allowed: No
?????????? Master_SSL_CA_File:
?????????? Master_SSL_CA_Path:
????????????? Master_SSL_Cert:
??????????? Master_SSL_Cipher:
?????????????? Master_SSL_Key:
??????? Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
??????????????? Last_IO_Errno: 0
??????????????? Last_IO_Error:
?????????????? Last_SQL_Errno: 0
?????????????? Last_SQL_Error:
1 row in set (0.00 sec)
?
ERROR:
No query specifiedMYSQL入門
#2 打包數據并發送到新從庫2服務器上
cd /usr/local/mysql/var/
tar czvf zabbix_20110805.tar.gz zabbix/
scp zabbix_20110805.tar.gz root@192.168.6.54:/rootMYSQL入門
《MYSQL數據庫mysql數據庫主從復制添加第N個從庫》是否對您有啟發,歡迎查看更多與《MYSQL數據庫mysql數據庫主從復制添加第N個從庫》相關教程,學精學透。維易PHP學院為您提供精彩教程。