今天新拉了一个项目,点击是碰到数据库的错误,
Communications link failure
The driver has not received any packets from the server.
花了我接近一天的时间,特写一篇博客纪念一下,防止下次再犯这种弱智错误
最先开始是觉得代码有问题
连续检查了好几遍都没有发现什么错
到网上查
很多人都说

修改MySQL的参数,wait_timeout最大为31536000即1年,在my.cnf中加入:
[mysqld]
wait_timeout=31536000
interactive_timeout=31536000

但是我的数据库明显不是这个错误,一查,果然有两个模块,我只改了一个模块的数据库地址,完事我把两个地址一改,您猜怎么着,通了。

遇到的问题:The driver has not received any packets from the server相关推荐

  1. The driver has not received any packets from the server,java.net.ConnectException: Connection refuse

    文章目录 问题一.idea中db navigator插件 The driver has not received any packets from the server或者是database对话框ja ...

  2. Mysql连接datagrip 报错 :The driver has not received any packets from the server.

    Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. ...

  3. The driver has not received any packets from the server.(linux中关于mysql相关命令)

    原因: 1.呃呃.重启服务器,没有重新启动mysql; 2.如果还不能连接可能是3306是不允许进行远程连接的,所以在防火墙中设置3306开启远程服务: /sbin/iptables -I INPUT ...

  4. 错误:The driver has not received any packets from the server.

    错误:The driver has not received any packets from the server. 用 mysql 8.*的依赖去连接 mysql 5 时报错 用 mysql 8. ...

  5. The driver has not received any packets from the server.

    在进行mybatis连接数据库进行操作时,报以下错误: The driver has not received any packets from the server. MySQL服务器默认的&quo ...

  6. The driver has not received any packets from the server

    解决方法: jdbc的url添加参数: jdbc.url=jdbc:mysql://localhost:3306/totosea?useUnicode=true&characterEncodi ...

  7. 连接mysql时报错:The driver has not received any packets from the server.

    连接mysql时报错. 前几天可以打开的数据库也不能打开,报java.net.ConnectException: Connection refused: connect.错误. 报错原因:mysql服 ...

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

    tomcat服务启动链接mysql报错: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failu ...

  9. Received status code 403 from server: ForbiddenDisable Gradle ‘offline mode‘ and sync project

    Could not HEAD 'https://dl.bintray.com/umsdk/release/cn/rongcloud/sdk/im_lib/4.0.3.15/im_lib-4.0.3.1 ...

最新文章

  1. 存储格式之大端小端详解
  2. 数字断路器获得商用认证
  3. yolo 识别 狗狗自行车
  4. hapi 插件注册 核心代码
  5. 支付宝 报错 rsa_private read error : private key is NULL解决方法
  6. php Switch语句
  7. 我是这样理解HTTP和HTTPS区别的
  8. CVPR 2020 论文大盘点—目标跟踪篇
  9. YOLO利用kmeans聚类算法计算anchors box(原理介绍及代码)
  10. 大数据时代的图表可视化利器——highcharts,D3和百度的echarts
  11. python之类和对象
  12. HTTP 的长连接和短连接
  13. 全裸或半裸的大肚照国际接轨 细数女星大尺度斗艳孕照
  14. 程序员转行做数据分析师_程序员可以转行数据分析师吗?
  15. 06-播放器-搭建媒体服务器测试videojs
  16. word如何首页和目录不编辑页码
  17. 编译器和解释器,预编译和预处理
  18. Android身份证扫描拍照识别SDK
  19. Linux内核总线系统 —— 通用总线和平台设备
  20. macbookair安装linux

热门文章

  1. [c语言]——跳水比赛
  2. Python中列表和元组的区别与联系
  3. Java各类技能知识点学习链接大全:八、Redis 缓存
  4. SSM框架学习-SpringBoot和SpringMVC
  5. 反应社会心里的两个小故事
  6. 【pip】CentOS7.x 升级pip失败报错处理
  7. IT行业(程序员)常用英文【单词本】
  8. ceph osdmap crush 分析
  9. 13种浪费生命的迹象
  10. 善假于物,利用工具2天开发一款完整新闻类iOS app