码迷,mamicode.com
首页 > 数据库 > 详细

记一次低级错误导致的mysql(111)

时间:2017-06-29 10:00:43      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:一个   ref   远程登录   导致   log   pre   blog   class   connect   

今天下午配好的双主多从服务器,两台主机+主机内安装好的6台虚拟机,两台Mysql master各授权好其slave的远程登录,原本好端端的能远程登录,晚上回来时候就发现其中一台master登录不上其slave(有2个),

[root@localhost ~]# telnet 192.168.1.135 3306
Trying 192.168.1.135...
telnet: connect to address 192.168.1.135: Connection refused
[root@localhost ~]# telnet 192.168.1.135 3759
Trying 192.168.1.135...
telnet: connect to address 192.168.1.135: Connection refused
[root@localhost ~]# telnet 192.168.1.135 3306
Trying 192.168.1.135...
telnet: connect to address 192.168.1.135: Connection refused
[root@localhost ~]# telnet 192.168.1.135 3759
Trying 192.168.1.135...
telnet: connect to address 192.168.1.135: Connection refused
[root@localhost ~]# mysql -h192.168.1.135 -uroot -p

这个神奇的表现是在是让我半天摸不着头脑,重启slave的mysqld OK,检查端口开放OK,检查端口使用3306,检查授权OK,ping OK,telnet refused,却没一个管用。

最后发现原来是打开了ipvsadm服务,关闭ipvsadm,登录slave,ok了。

 

不能再有下次。

记一次低级错误导致的mysql(111)

标签:一个   ref   远程登录   导致   log   pre   blog   class   connect   

原文地址:http://www.cnblogs.com/GaZeon/p/7092457.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!