[求助]mysql同步error(Slave_IO_Running: Connecting),该怎么处理 _MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2224 | 回复: 0   主题: [求助]mysql同步error(Slave_IO_Running: Connecting),该怎么处理         下一篇 
felix
注册用户
等级:新兵
经验:6
发帖:56
精华:0
注册:2011-7-22
状态:离线
发送短消息息给felix 加好友    发送短消息息给felix 发消息
发表于: IP:您无权察看 2014-12-23 9:11:55 | [全部帖] [楼主帖] 楼主

mysql同步error(Slave_IO_Running: Connecting)

我的mysql版本:

[root@cancer ~]# rpm -qa|grep My

MySQL-shared-5.5.11-1.linux2.6

MySQL-devel-5.5.11-1.linux2.6

MySQL-embedded-5.5.11-1.linux2.6

MySQL-test-5.5.11-1.linux2.6

MySQL-server-5.5.11-1.linux2.6

MySQL-client-5.5.11-1.linux2.6

MySQL-shared-compat-5.5.11-1.linux2.6

[root@cancer ~]#

同步设置:主服务器:172.16.20.1 从服务器:172.16.20.2

1.主服务器上创建同步账户,修改my.cnf;重启,锁表,mysqldump导出数据库destoon;

2.从服务器上导入数据源destoon,修改my.cnf,重启mysql,登录change master...加入主服务器信息,slave start之后,show slave status\G;显示信息如下:

mysql> show slave status\G;

*************************** 1. row ***************************

Slave_IO_State: Connecting to master

Master_Host: 172.16.20.1

Master_User: repliword

Master_Port: 3306

Connect_Retry: 60

Master_Log_File:

Read_Master_Log_Pos: 4

Relay_Log_File: mysql-relay-bin.000002

Relay_Log_Pos: 4

Relay_Master_Log_File:

Slave_IO_Running: Connecting

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: 0

Relay_Log_Space: 107

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: 2003

Last_IO_Error: error connecting to master 'repliword@172.16.20.1 :3306' - retry-time: 60 retries: 86400

Last_SQL_Errno: 0

Last_SQL_Error:

Replicate_Ignore_Server_Ids:

Master_Server_Id: 0

1 row in set (0.00 sec)

重新reset slave,在加入master信息还是不行;

这时主服务执行

mysql> show processlist;

+----+------+-----------+------+---------+------+-------+------------------+

| Id | User | Host | db | Command | Time | State | Info |

+----+------+-----------+------+---------+------+-------+------------------+

| 37 | root | localhost | NULL | Query | 0 | NULL | show processlist |

+----+------+-----------+------+---------+------+-------+------------------+

1 row in set (0.00 sec)

从服务器显示:

mysql> show processlist;

+----+-------------+-----------+-------+---------+------+-----------------------------------------+------------------+

| Id | User | Host | db | Command | Time | State | Info |

+----+-------------+-----------+-------+---------+------+-----------------------------------------+------------------+

| 19 | root | localhost | smmdb | Query | 0 | NULL | show processlist |

| 22 | system user | | NULL | Connect | 513 | Connecting to master | NULL |

| 23 | system user | | NULL | Connect | 513 | Slave has read all relay log; waiting for the slave I/O thread to update it | NULL |

--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论