I have spring boot application, as part of my application I have mysql database. Sometimes I forgot to open mysql port, due to this my app failed to start
com.mysql.cj.jdbc.exceptions.CommunicationsException: 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.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:590)
It should start with warning message, thanks in advance.