连接本地MySQL数据库报错

 

2019-01-19 18:53:34

严重:18:53:34 Druid-ConnectionPool-Create-1575635644 ERROR [com.fr.third.alibaba.druid.pool.DruidDataSource] create connection error, url: jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=true, errorCode 0, state 08S01


2019-01-19 18:53:44

警告:18:53:44 pool-28-thread-1 WARN [root] 错误代码:31300012 创建数据连接失败: Communications link failure


Last packet sent to the server was 4 ms ago.


2019-01-19 18:53:44

严重:18:53:44 SwingWorker-pool-12-thread-3 ERROR [root] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


Last packet sent to the server was 4 ms ago.


FineReport tangshi998 发布于 2019-1-19 18:59
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
tangshi998Lv4初级互助
发布于2019-1-19 19:03

添加?characterEncoding=utf8即可

  • 0关注人数
  • 2215浏览人数
  • 最后回答于:2019-1-19 19:03
    请选择关闭问题的原因
    确定 取消
    返回顶部