我需要一些复制建议。我正在尝试设置从一台服务器到另一台服务器的特定数据库的复制。我现在只是在内部这样做,只是为了观察。
MySQL 报告说我的努力是正确的。但是,在主设备上更改的数据不会出现在从设备上。
我可以确认:
- MySQL 服务器具有唯一的 ID。
- 在 master 上创建具有权限(所有特权)的新用户。
- 从站被引导(成功)到主站的 IP 并带有凭证。
这是每台服务器 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