解决Dbeaver连接数据库The last packet sent successfully to the server was 0 milliseconds ago.
问题:未启动MySQL服务器
解决思路:启动MySQL服务器
方法:打开cmd,输入 net start mysql,回车。
这里浅讲一下在处理错误的时候的常用思路:
当我们遇到问题的时候,如果我们能看懂英文的话最好,如果不可以的话,可以使用翻译,把报错的内容翻译成中文,进而根据中文意思进行思考。(这是一种思路)
回归正题:当我们试图通过jdbc连接MySQL的时候,发现连接后报错(报错内容如下):
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.
中文意思:
通信链路故障
最后一个成功发送到服务器的数据包是 0 毫秒前。驱动程序尚未从服务器接收任何数据包。
那么根据The driver has not received any packets from the server.我们可能会联想到是未启动MySQL服务。
解决Dbeaver连接数据库The last packet sent successfully to the server was 0 milliseconds ago.相关推荐
- 解决异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的办法
解决异常:"The last packet sent successfully to the server was 0 milliseconds ago. "的办法 参考文章: ( ...
- The last packet sent successfully to the server was 0 milliseconds ago 解决
目录 The last packet sent successfully to the server was 0 milliseconds ago 出现后的解决方法. 原因及解决方法. 配置文件的 I ...
- springboot启动异常[ The last packet sent successfully to the server was 0 milliseconds ago. ]
异常 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not recei ...
- 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 ...
- Springboot项目启动:报错The last packet sent successfully to the server was 0 milliseconds ago
解决方法:修改MySQL数据库连接后面未为如下即可 ?useSSL=false&useUnicode=true&characterEncoding=utf-8&useLegac ...
- mysql数据库连接报错The last packet sent successfully to the server was 0 milliseconds ago. The drive
多数据源场景,其中一个是mysql库,数据源连接报错 数据包发送了,但是未接到回执. 1.如果是首次连接报错,考虑是网络问题导致数据不可达.依次排查以下几个方面: (1)网络是否连通 (2)防火墙是否 ...
- 【疑难杂症】The last packet sent successfully to the server was 0 milliseconds ago.
遇到这种问题: 1:现在本地连接下数据库,看是否能连接上 2:如果无法连接 解决方案: 1:看端口3306是否开启 2:看是否开启数据库远程登录 3:端口开启后,是否重启了服务器? 记录一下这个大坑, ...
- 【Mysql】Communications link failure,The last packet sent successfully to the server was 0 millisecond
项目背景是数据库和项目不在同一台服务器下,在启动时,突然遇到以下错误: Exception in thread "main" com.mysql.jdbc.exceptions.j ...
- 解决数据库连接失败的报错The last packet sent successfully to the server was 0 milliseco
如果你所有的代码都没写错的话,这个问题大概率是因为你的MySQL服务没开. 开启MySQL服务,连接就成功了
最新文章
- 8天学通MongoDB——第三天 细说高级操作
- new 开始转向PHP
- 使用YCSB检测MongoDB
- sklearn的简单使用
- Centos 安装mongodb
- Java 8:将匿名类转换为Lambda表达式
- python mqtt broker_python Mqtt 的安装及使用
- 谷歌 Pixel 4 人像模式拍照算法揭秘
- 员工发布“宏颜获水”广告引争议 苏宁回应:系个人行为
- 水桶平分 java_关于java:桶排序算法代码问题
- Android项目图像资源保存在,将图像从drawable保存到android中的内部文件存储
- ajax实现评论区功能,Ajax实现评论中顶和踩功能的实例代码
- 【狂神说Redis】2Redis入门 2-2Redis部署在Linux(Ubuntu)
- 小红伞的WAF一个绕过方法
- 5元的小乌龟吃什么_小乌龟吃什么最好?
- 用户帐户控制---为了对电脑进行保护,已经阻止此应用。---管理员已阻止你运行此应。有关详细信息,请与管理员联系。
- R语言进行人年发病率可信区间计算(per 1,000 person-years)
- 2020南京市(徐庄)高层次创业人才引进计划开启申报
- java文件分割与合并
- Android模拟器的判定