title: Unable to connect to remote MySQL Server
body: <p>I have a server attempting to connect to a MySQL database hosted outside of the local network. I am attempting to use a public IP address to connect to it.</p>
  
  <p>Testing the connection in the command line gives me this error:</p>
  
  <p><code>ERROR 2003 (HY000): Can't connect to MySQL server on '[ip_address]' (146)</code></p>
  
  <p>PDO gives me the same error. In any case, the connection works fine locally and within the same network, which is what boggles my mind.</p>
  
  <p>The MySQL server has had its bind-address modified so it accepts remote connections. The MySQL server also has a user with the proper privileges set. But in any case, it looks as though I can't even start the connection in the first place.</p>
  
  <p>Is there a my.cnf value I need to add to let MySQL accept requests from outside the local network?</p>
  
  <p>Thanks.</p>