mariadb数据库,使用实际IP(10.0.1.155)可以远程登录,但是使用VIP(10.0.1.154)不能登录,这是什么原因,请高手赐教,谢谢!

解决方案 »

  1.   

    Can't connect to MySQL server on '10.0.1.154' (111 "Connection refused")
      

  2.   

    确认你的 VIP 是可用的,可以用 PING 测试
    确认你的 MySQL 端口用 VIP 是可连接的,用 telnet 测试
      

  3.   

    VIP是可以ping通的,但是就是不能连接:
    [root@ctl2m ~]# telnet 10.0.1.154 3306
    Trying 10.0.1.154...
    telnet: connect to address 10.0.1.154: Connection refused
    [root@ctl2m ~]# telnet 10.0.1.155 3306
    Trying 10.0.1.155...
    Connected to 10.0.1.155.
    Escape character is '^]'.
    Y
    5.5.5-10.1.19-MariaDBU)]zm4[L? ptwvk6k7pQ%bmysql_native_password!#08S01Got packets out of orderConnection closed by foreign host.