JDBC: Communications link failure

This bugged me for a while. I wanted to connect to a mysql server via a java app with the jdbc connector. I kept getting this error: “com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure” and then some reflection got into my...