我需要一些复制建议。 我正在尝试将特定数据库的复制设置为从一台服务器到另一台服务器。 我现在只在内部做这件事,只是为了观察。
MySQL报告说我的努力是正确的。但是,主设备上更改的数据不会出现在从设备上。
我可以确认:
以下是MySQL报告的每个服务器的报告。如果它不起作用,我应该看到这个消息吗?
我只是不知道从哪里开始。
主人:
File mysql-bin.000008
Position 107
Binlog_Do_DB SBGreplication
Binlog_Ignore_DB
显示已连接的奴隶:
Server ID Host
2
请参阅奴隶状态表
Variable Value
Slave_IO_State Waiting for master to send event
Master_Host 10.0.1.100
Master_User sbgreplication
Master_Port 8889
Connect_Retry 60
Master_Log_File mysql-bin.000008
Read_Master_Log_Pos 107
Relay_Log_File mysql-relay-bin.000010
Relay_Log_Pos 253
Relay_Master_Log_File mysql-bin.000008
Slave_IO_Running Yes
Slave_SQL_Running Yes
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 107
Relay_Log_Space 409
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 0
答案 0 :(得分:0)
你应该做三件事:
请记住,如果主服务器和从服务器以任何方式失去同步(单个插入失败),复制将弹出错误并停止直到它可以继续。