What is the problem? Can't connect to database?
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory ( Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
This is the actual cause of the problem:
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
You have a database communication link problem. Make sure that your application have network access to your database (and the firewall isn't blocking ports to your database).
I had the same problem with localhost
in the source URL. I resolved with 127.0.0.1
instead of localhost
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With