关于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=t
·
控制台报的错误:
[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的路径问题!
更多推荐
已为社区贡献1条内容
所有评论(0)