草庐IT

millisecond

全部标签

解决异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的办法;及Linux网络ping不通得问题

报错信息如下: 2 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communicationslinkfailure 3Thelastpacketsentsuccessfullytotheserverwas0millisecondsago.Thedriverhasnotreceivedanypacketsfromtheserver.很明显第二得错误提示信息有提到mysql,说明mysql服务没有启动等原因。事实上我得mysql服务确实没有链接通,原因是我把linux得一个子网修改后,导致navicat连接不上mysql服务器,在