title: ERROR 2003 (HY000) while trying to connect to mysql remotely
body: <p>I am trying to connect to mysql remotely. Because this is such a common question I read several tutorials/questions but I keep getting this error:
  <code>
  ERROR 2003 (HY000): Can't connect to MySQL server on 'the-ip-address' (60)
  </code>
  I edited the /etc/mysql/my.cnf and commented the line of bind_address like this:</p>
  
  <p><code>#bind-address = 127.0.0.1</code></p>
  
  <p>After that I ran:</p>
  
  <p><code>$ sudo service mysql restart</code></p>
  
  <p>with the output of:
  <code>
  mysql stop/waiting
  mysql start/running, process 9853
  </code></p>
  
  <p>mysql is running on default port: 3306</p>
  
  <p>Using the user with which I am trying to connect remotely is working locally on the server (I can connect to the mysql from the server).</p>
  
  <p>In phpmyadmin I configure these users:
  <code>
  user@localhost
  user@127.0.0.1
  user@87.45.34.23
  </code></p>
  
  <p>Then I am trying to connect with the following:</p>
  
  <p><code>mysql -u user -p -h 87.45.34.23</code></p>
  
  <p>Maybe I am missing something... Thank you in advanced</p>
  
  <p><strong>UPDATE</strong>
  As @Geoffrey suggested in the comments the problem was with a firewall. For this reason I will accept his answer although the answer itself is not for that but in the comments he was right. </p>