9.0版本无法连接本地mysql数据库,lib文件夹已替换mysql jar包,为mysql-connector-java-5.1.39-bin.jar,定义数据连接url为 jdbc:mysql://localhost:3306/hxyh?useUnicode=true&characterEncoding=UTF-8 设计器日志报错 2021-07-13 15:45:17 严重:15:45:17 Druid-ConnectionPool-Create-1843416519jdbc:mysql://localhost:3306/hxyh?useUnicode=true&characterEncoding=UTF-8 ERROR [com.fr.third.alibaba.druid.pool.DruidDataSource] create connection error, url: jdbc:mysql://localhost:3306/hxyh?useUnicode=true&characterEncoding=UTF-8, errorCode 0, state 08001 2021-07-13 15:45:27 警告:15:45:27 pool-17-thread-1 WARN [root] 错误代码:31300012 创建数据连接失败: Could not create connection to database server. 2021-07-13 15:45:27 严重:15:45:27 SwingWorker-pool-16-thread-5 ERROR [root] com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. 求大佬解惑 |
最佳回答 |
||||
0
|
|