jeecg启动报错“com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create con

Posted <・)))><<

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jeecg启动报错“com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create con相关的知识,希望对你有一定的参考价值。

在运行“maven build”-->“tomcat:run”之后,报如下错误:

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
......

很有可能是因为你跟我一样安装了mysql 8,改成mysql 5再试试。

以上是关于jeecg启动报错“com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create con的主要内容,如果未能解决你的问题,请参考以下文章

项目启动报错:Communications link failure

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

重装系统,新安装IDEA启动项目后,classnotfound:com.mysql.jdbc.Driver

解决报错提示:Loading class `com.mysql.jdbc.Driver‘.The new driver class is ‘com.mysql.cj.jdbc.Driver‘.(代码片

mysql报错:Cause: com.mysql.jdbc.PacketTooBigException

JDBC报错:Cannot find class: com.mysql.jdbc.Driver