The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

在链接数据库的时候,报错如下:

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

上网查,一般是设置超时时间,我这边设置超时时间是不管用的,敢肯定的是没有设置mysql白名单或者网络不通的问题。

posted @ 2019-07-02 10:33  在谷歌上百度  阅读(1306)  评论(1编辑  收藏  举报