The last packet sent successfully to the server was 0 milliseconds ago, The driver has not received
来源:互联网 发布:美微网络柠檬视频tv 编辑:程序博客网 时间:2024/05/16 11:39
重装系统后第一次装mysql, 中间没有任何问题. 项目一跑起来访问数据库时提示:
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.
然后上网一查, 结果说是与Mysql空闲等待时间有关, 也照着修改了my.ini
- [mysqld]
- wait_timeout=31536000
- interactive_timeout=31536000
也有人说可以换成c3p0的连接方式, 但项目里不能改动,
最后猜想只有可能是mysql本身的问题了, 于是卸载了重装一个5.1版本的。
把sql导入后, 项目启动,连接成功了,没有再报错
0 0
- Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago, The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
- android解决The last packet sent successfully to the server was 0 milliseconds ago. The driver has not
- mysql The last packet sent successfully to the server was 0 milliseconds ago. The driver has not rec
- The last packet sent successfully to the server was 0 milliseconds ago. The
- [Java] 解决异常:“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.
- java mysql 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
- 插入排序InsertSort
- k8测试的一个问题
- UGUI下拉列表修改(0813Edit)
- Android编程之LocalBroadcastManager源码详解
- [推荐算法]Pearson Correlation Similarity 的python实现
- The last packet sent successfully to the server was 0 milliseconds ago, The driver has not received
- 韩信点兵
- Android ViewPager无限滑动(支持左右,存在传入数量限制)方式二
- HDU 5385
- 应用程序的makefile编写例程
- 2015.08.13
- foj Problem 1894 志愿者选拔---单调队列
- 读书笔记_高质量程序设计指南C++/C语言_10_文件结构和版式
- linux 设备模型(二 driver)