社区
Eclipse
帖子详情
用myeclipse链接MYSQL数据库的时候出现last packet sent to the server was 0 ms ago 请问怎么解决 谢谢
jspxiaoguang
2008-11-18 10:58:13
connection URL jdbc:mysql:localhost:8080/test
add jar is mysql-connector-java-5.1.7-bin.jar
其他设置正确 请大家帮忙看看 谢谢~~
...全文
2505
6
打赏
收藏
用myeclipse链接MYSQL数据库的时候出现last packet sent to the server was 0 ms ago 请问怎么解决 谢谢
connection URL jdbc:mysql:localhost:8080/test add jar is mysql-connector-java-5.1.7-bin.jar 其他设置正确 请大家帮忙看看 谢谢~~
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Qiao0328
2012-05-17
打赏
举报
回复
端口被占了,应该怎么处理啊啊,我的端口8080被占了已经,然后现在mysql连接时就报和楼主一样的错误!!!!
lz1019
2008-11-24
打赏
举报
回复
我知道了,把防火墙关了就搞定了哈哈
lz1019
2008-11-24
打赏
举报
回复
我遇到和你相同的问题,是不是myeclipse和MYSQL不兼容啊
APOLLO_TS
2008-11-22
打赏
举报
回复
8080端口!!!我倒!!
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
myjava_024
2008-11-22
打赏
举报
回复
8080?如果端口没有修改的话,mysql的默认端口是3306
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
cityhunter_sh
2008-11-20
打赏
举报
回复
首先确认一下你的8080端口是不是被其他程序占用了或者被防火墙屏蔽了!!!
String url = "jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK";
//当然你也可以不作设置
String username = "root";
String password = null;
java.sql.Connection conn = java.sql.DriverManager.getConnection(url,username,password);
这样写干净点。
连接
数据库
报错The last
packet
sent
successfully to the
server
was 0 milliseconds
ago
. The driver has not re
mysql
数据库
突然连不上,
myeclipse
运行项目时报错如下 The last
packet
sent
successfully to the
server
was 0 milliseconds
ago
. The driver has not received any
packet
s from the
server
. 2019-8-14 2:45:17 org.apache.catalina....
The last
packet
sent
successfully to the
server
was 0 milliseconds
ago
. The driver has not received
问题描述: mac系统,web开发,开发工具
myEclipse
2017 ,启动tomact部署web 项目,servlet的java代码连接
mysql
数据库
,报异常如下: Communications link failure The last
packet
sent
successfully to the
server
was 0 milliseconds
ago
. The driver...
myeclipse
连接远程
mysql
5.7
出现
The last
packet
sent
successfully to the
server
was 0 milliseconds
ago
. The
1.使用Navicat,
myeclipse
均连接失败,网上说修改wait_timeout,结果不起作用。 2.后来找到/etc/
mysql
/
mysql
.conf.d/
mysql
d.cnf里修改了bind-address=127.0.0.1为0.0.0.0, 3.重启
MySQL
:sudo service
mysql
restart即可。
远程连接
mysql
数据库
报“Communications link failure...”错误的
解决
方法之一
今天在用
myEclipse
连接
mysql
时提示:"Communications link failure,Last
packet
sent
to the
server
was 0 ms
ago
."出错界面如下图所示:
myeclipse
错误提示页面 检查了下,在本机能ping通远程服务器,但是使用telnet命令无法远程连接上远程的
mysql
端口。而检查了服务器重
mysql
的服务是已启动滴...
用
myeclipse
启动
mysql
_【JAVA进阶】——
myEclipse
连接
mysql
启动
数据库
服务
背景:DRP项目要求使用Oracle
数据库
,但目前由于种种原因,暂时还装不了Oracle。但也不能闲着啊,就拿
mysql
来试试。安装完
mysql
以后,使用
myEclipse
连接
数据库
,就一直报错,报错信息如下。后来发现是没有启动
数据库
服务,接下来就是具体步骤了。com.
mysql
.jdbc.exceptions.jdbc4.CommunicationsException: Communicatio...
Eclipse
58,452
社区成员
49,460
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章