[Solved] Not able to connect to mySQL database from external server
I've got the situation that we connect from desktops to the webservers mySQL server.
And that has been working great for ever and still is working.
I needed to add the host of the local pc to the MySQL hosts and the connection was possible.
Now I tried to connect from one of my other servers to the same database and I get a connection refused.
I tried it with MySQL, PDO and MySQLi.
All give simular errors:
Connection failed: Connection refused
I've added the server's IP to the MySQL host, added the IP to the firwall to no avail.
Then placed the bare Essentials connect script over to the target server and found out I could only connect when the server is "localhost".
So the servers IP or the users domainname does not connect.
While connecting from the pc works?
So what did I miss to get it connected?
I've got the situation that we connect from desktops to the webservers mySQL server.
And that has been working great for ever and still is working.
I needed to add the host of the local pc to the MySQL hosts and the connection was possible.
Now I tried to connect from one of my other servers to the same database and I get a connection refused.
I tried it with MySQL, PDO and MySQLi.
All give simular errors:
Connection failed: Connection refused
I've added the server's IP to the MySQL host, added the IP to the firwall to no avail.
Then placed the bare Essentials connect script over to the target server and found out I could only connect when the server is "localhost".
So the servers IP or the users domainname does not connect.
While connecting from the pc works?
So what did I miss to get it connected?
Last edited: