title: MYSQL & SQuirreL - Unexpected Error occurred attempting to open an SQL connection
body: <p>I'm trying to connect using JDBC MySQL driver but it won't work. As far as I am away I have followed every step correctly, and the MySQL driver has the blue check mark. I am using Windows 7. Here is the stack trace I get upon the error:</p>
  
  <blockquote>
    <p>java.util.concurrent.ExecutionException: java.lang.RuntimeException:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
    Communications link failure</p>
    
    <p>The last packet sent successfully to the server was 0 milliseconds
    ago. The driver has not received any packets from the server.     at
    java.util.concurrent.FutureTask.report(FutureTask.java:122)   at
    java.util.concurrent.FutureTask.get(FutureTask.java:206)  at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(OpenConnectionCommand.java:132)
      at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(OpenConnectionCommand.java:45)
      at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$2.run(OpenConnectionCommand.java:115)
      at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)     at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745) Caused by:
    java.lang.RuntimeException:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
    Communications link failure</p>
    
    <p>The last packet sent successfully to the server was 0 milliseconds
    ago. The driver has not received any packets from the server.     at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:171)
      at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(OpenConnectionCommand.java:45)
      at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$1.run(OpenConnectionCommand.java:104)
      ... 5 more Caused by:
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
    Communications link failure</p>
    
    <p>The last packet sent successfully to the server was 0 milliseconds
    ago. The driver has not received any packets from the server.     at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)     at
    com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:981)
      at com.mysql.jdbc.MysqlIO.(MysqlIO.java:339)  at
    com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)
      at
    com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2286)
      at
    com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2085)
      at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)    at
    com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)     at
    com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)    at
    com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
      at
    net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133)
      at
    net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:167)
      ... 7 more Caused by: java.net.ConnectException: Connection timed
    out: connect  at
    java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)   at
    java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
      at
    java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      at
    java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      at
    java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)   at
    java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)    at
    java.net.Socket.connect(Socket.java:589)  at
    com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
      at com.mysql.jdbc.MysqlIO.(MysqlIO.java:298)  ... 21 more</p>
  </blockquote>