《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学院为您提供精彩教程。