关于java.sql.SQLNonTransientConnectionException: Could not create connection to database server. 的解决办法

控制台报的错误:

[ERROR] 2018-06-04 15:34:08.281 [RMI TCP Connection(5)-127.0.0.1] c.alibaba.druid.pool.DruidDataSource:870 - init datasource error, url: jdbc:mysql://localhost:3306/credit-demo?autoReconnect=true&useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&serverTimezone=UTC

java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

解决办法:

jdbc中url的路径问题!

猜你喜欢

转载自blog.csdn.net/love_onefly/article/details/80684737