title: How to allow remote connection to mysql database in Mac's MAMP
body: <p>I have a MySQL database in my Mac using MAMP. I need to connect to this database using PHP script from a remote server with IP for example 184.173.9.... I have been trying this for 2 days now with no luck. </p>
  
  <p>I tried some forum where they asked to comment out skip-networking and use bind-address with remote server's IP in my.cnf file in MAMP. Firstly I wasn't finding the my.cnf file in MAMP but eventually found one from Library/support-files/my-medium.cnf. I copied it and placed in tmp/mysql/my.cnf. But nothing works. </p>
  
  <p>I also turned off the firewall in System Preferences/Security &amp; Privacy.</p>
  
  <p>The php code I am using to connect looks like this:</p>
  
  <p>mysql_connect('176.249.200....:3306', 'test', 'test') or die(mysql_error());</p>
  
  <p>Could you please suggest me what else I am missing?</p>