Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransien

时间:2021-05-12 20:33:13

当你start   tomcat 然后出现这样的错误时候:Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransien

但是就是数据库连接不上,但是Navicat可以连接上数据库

后台报错:Could not create connection to database server. Attempted reconnect 3 times. Giving up

这个问题的解决办法是:说实话解决了很久没成功放弃了,第二天突然好了,简直神奇