mysql主/从复制设置但不工作

时间:2014-10-26 16:35:44

标签: mysql replication

我在主人和主人之间设置mysql复制时遇到了一些麻烦。奴隶..

我成功完成了设置,但数据没有更新。

主人:显示主人身份;

[File]: mysql-bin.000033
[Position]: 1757196
[Binlog_Do_DB]: ciel

Master:show processlist;

[User]: slave
[Host]: 92.222.177.xxx:57578 ( right slave ip )
[db]: 
[Command]: Binlog Dump
[Time]: 1231
[State]: Has sent all binlog to slave; waiting for binlog to be updated

奴隶:显示奴隶状态;

[Slave_IO_State]: Waiting for master to send event
[Master_Host]: 46.105.122.xxx
[Master_User]: slave
[Master_Port]: 3306
[Connect_Retry]: 60
[Master_Log_File]: mysql-bin.000033
[Read_Master_Log_Pos]: 1757196
[Relay_Log_File]: mysqld-relay-bin.000006
[Relay_Log_Pos]: 252
[Relay_Master_Log_File]: mysql-bin.000033
[Slave_IO_Running]: Yes
[Slave_SQL_Running]: Yes
[Replicate_Do_DB]: ciel
[Exec_Master_Log_Pos]: 1757196
[Relay_Log_Space]: 409
[Until_Condition]: None
[Master_SSL_Allowed]: No
[Master_SSL_Verify_Server_Cert]: No
[Master_Server_Id]: 1

Slave:show proccesslist;

[User]: system user
[Host]: 
[db]: 
[Command]: Connect
[Time]: 1231
[State]: Waiting for master to send event
[Info]: 

[Id]: 2
[User]: system user
[Host]: 
[db]: 
[Command]: Connect
[Time]: 1231
[State]: Slave has read all relay log; waiting for the slave I/O thread to update it

然后在master上选择数据:

master: lastmod: 2014-10-26 17:14:55
slave:  lastmod: 2014-10-26 15:45:45

我感到迷茫,因为我在8小时后仍未找到,如何正确设置。

0 个答案:

没有答案