Spring boot My Sql Connection
mad-cmaker
FREEOP

10 months ago

I've been trying to make login in my app but i've been facing this error:

OBS: I can connect in database through DBeaver, but my application do not connect

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

Jun 03 01:42:33

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

Jun 03 01:42:33

Jun 03 01:42:33

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

Jun 03 01:42:33

at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:175)

Jun 03 01:42:33

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)

Jun 03 01:42:33

at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:825)

Jun 03 01:42:33

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:446)

Jun 03 01:42:33

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:239)

Jun 03 01:42:33

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:188)

Jun 03 01:42:33

at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)

Jun 03 01:42:33

at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:229)

$10 Bounty

1 Replies

9 months ago

Can you share the following

  • Your project repository

  • Your project architecture

  • The names of the environmental variables you're passing


Loading...