Question: is com.mysql.jdbc.exceptions.jdbc4.communicationsexception communications link failure?
Answer: If you get a SQLException: Connection refused or Connection timed out or a MySQL specific CommunicationsException: Communications link failure , then it means that the DB isn't reachable at all. This can have one or more of the following causes: IP address or hostname in JDBC URL is wrong.