Java connection database problem

CSDN Q & A 2022-05-22 13:04:28 阅读数:625

javaconnectiondatabaseproblem

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.
How to solve this problem

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/142/202205150148468351.html