- 论坛徽章:
- 0
|
我A,B两台机器主从同步可以,但是双向同步不行
在A机器上执行slave start;提示
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log
查看var目录下的错误内容为:
080825 14:45:48 [ERROR] log ./lsmqy-relay-bin.000056 listed in the index, but failed to stat
080825 14:45:48 [ERROR] Error counting relay log space
080825 14:45:49 [ERROR] log ./lsmqy-relay-bin.000057 listed in the index, but failed to stat
080825 14:45:49 [ERROR] Error counting relay log space
080825 14:45:50 [ERROR] log ./lsmqy-relay-bin.000058 listed in the index, but failed to stat
080825 14:45:50 [ERROR] Error counting relay log space
080825 15:06:32 [ERROR] log ./lsmqy-relay-bin.000059 listed in the index, but failed to stat
080825 15:06:32 [ERROR] Error counting relay log space
而且master.info一直都为空
另B机器上这些都很正常
就是因为这台机器报这个错,所以导致无法实现双向同步
两台机器的mysql版本都为mysql5.0.4
A上面的my.cnf配置为:
server-id = 1
master-host = 192.168.5.32
master-user = test
master-password = '123456'
master-port = 3306
log-bin= mysql-bin
binlog-do-db = testdb
replicate-do-db = testdb
B上面的my.cnf配置为:
server-id = 2
master-host = 192.168.5.40
master-user = test
master-password = '123456'
master-port = 3306
replicate-do-db = testdb
binlog-do-db= testdb
log-bin= mysql-bin
请问高手们怎么解决呀 |
|