无法连接mysql数据库,错误代码31300012创建数据连接失败

帆软版本: 10.0.12

已尝试替换更新驱动包:mysql-connector-java-5.1.49-bin.jar , 但报错依旧, 报错信息如下:

2021-08-23 18:04:43

严重:18:04:43 TestConnection-45-worker-1 ERROR [standard] 错误代码:31300012 创建数据连接失败: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

2021-08-23 18:04:43

严重:18:04:43 TestConnection-45-worker-1 ERROR [standard] 错误代码:11300009 数据库连接失败: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

2021-08-23 18:04:43

严重:18:04:43 SwingWorker-pool-7-thread-2 ERROR [standard] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

FineReport 用户r0003887 发布于 2021-8-23 18:35
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共1回答
最佳回答
0
zsh331Lv8专家互助
发布于2021-8-23 18:43

[平台]MySQL数据连接-https://help.fanruan.com/finereport/doc-view-2560.html

————————————

-- 驱动更换完,重启服务生效

-- 如果是MySQL8.0版本,可以尝试插件连接;

————————————

[平台]MySQL8数据连接插件-https://help.fanruan.com/finereport/doc-view-3751.html

  • 2关注人数
  • 714浏览人数
  • 最后回答于:2021-8-23 18:43
    请选择关闭问题的原因
    确定 取消
    返回顶部