{"id":108,"date":"2008-07-02T05:18:06","date_gmt":"2008-07-02T10:18:06","guid":{"rendered":"http:\/\/installingcats.com\/?p=108"},"modified":"2008-07-02T05:18:06","modified_gmt":"2008-07-02T10:18:06","slug":"cant-connect-to-mysql-server-on-remote-server","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2008\/07\/02\/cant-connect-to-mysql-server-on-remote-server\/","title":{"rendered":"Can’t connect to mysql server on remote server"},"content":{"rendered":"
By default mysql does not allow connects to itself from any host besides localhost, for security reasons.<\/p>\n
When you get an error “Can’t connect to mysql server on [remote server]” when trying to connect to the remote SQL server via the mysql command line tool, log into the server running the mysql server and edit the \/etc\/mysql\/my.cnf config file.<\/p>\n
In particular, comment out the following line:
\nbind-address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 127.0.0.1<\/code>
\nThis allows for connections from any host.<\/p>\n