Can't connect to mysql on public domain name

Discussion in 'ISPConfig 3 Priority Support' started by toyinal, Mar 28, 2016.

  1. toyinal

    toyinal Member HowtoForge Supporter

    Thanks for a great product ISPConfig 3, I've setup 2 servers cluster using Till tutorial modified for Centos 7.1 But I have this problem in the mariadb log Error 2003: Can't connect to MySQL server on '[Master server Domain name]' (111) in /usr/local/ispconfig/server/lib/classes/ on line 72 . This is because these test servers are setup on local IPs and the ISP blocks port 3306 on the outside, Can I configure the slave server to connect to the master DB using the master local IP and not its domain name.

    Thanks as always.
    Elly Jhon likes this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you have listed the hostname of both servers in both /etc/hoats files with their local IP addresses and not the external ones. If the lines are present there, then ispconfig will ue the internal IP addresses during installation when you use the hostname of the other server.

Share This Page