打印表时报错
来源:9-12 -Scala操作MySQL工具类开发
进击的大黄鸭
2017-07-18
Exception in thread "main" 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.
Caused by: java.net.ConnectException: Connection refused: connect
用idea测试显示失败 细节是对话框里面说的
写回答
2回答
-
1)网络 2)mysql驱动版本
022017-07-19 -
进击的大黄鸭
提问者
2017-07-19
我把url改成 ip地址就好了。。192.168.1.* 不知道为什么 先这样吧。。
00
相似问题