title: Mysql -  connect to remote server using IP address
body: <p>I am using PHP and MySQL to make a database connection, the only change is that I am trying to access my remote server from my local computer using my server IP address.</p>
  
  <pre><code>mysql_connect("x.xx.xx.x","username","password") or die(mysql_error());
  </code></pre>
  
  <p>and the error I am getting is <code>Unable to connect to the given host</code>. The user has all privileges and rights.</p>