title: Connecting to MySQL from Java to WAMP / MAMP Pro
body: <p>I am trying to connect from java to a MySQL database from an external computer on a machine hosting WAMP and other hosting MAMP Pro. The connection to WAMP is fine but on MAMP Pro, I get the following error. </p>
  
  <pre><code>              String userName = "user";
                String password = "pass";
                String url1="jdbc:mysql://&lt;IP Address&gt;:3306/dbname";
                Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                conn1=DriverManager.getConnection (url1, userName, password);
  
  
  The last packet sent successfully to the server was 0 milliseconds ago. 
  The driver has not received any packets from the server.
  </code></pre>
  
  <p>I had changed the privellages in both the server by going to Privellages in PhpMyAdmin and chaning host to any host under Login Information. Worked for WAMP but didn't work for MAMP Pro.</p>
  
  <p>Any suggestions?</p>