title: ERROR 2003 (HY000): Can't connect to MySQL server on '23.23.*.*' (110)
body: <p>I am trying to connect to a remote mysql server but is encountering this error.On the server I have </p>
  
  <ol>
  <li>set bind-address to 0.0.0.0</li>
  <li><p>Changed Iptables to look like this</p>
  
  <pre><code>target     prot opt source               destination 
  DROP       tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:3306
  ACCEPT     tcp  --  127.0.0.1            0.0.0.0/0            tcp dpt:3306
  ACCEPT     tcp  --  107.22.*.*           0.0.0.0/0            tcp dpt:3306
  </code></pre>
  
  <p>where 107.22.** is the IP of the machine I am trying to connect from </p></li>
  <li><p>Restarted UFW</p></li>
  <li>verified that my AWS security groups allow port 3306 is allowed access from everywhere.</li>
  </ol>
  
  <p>What could be the reason for the error? </p>