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改一下配置
在my.cnf中加入:
[mysqld]
wait_timeout=31536000
interactive_timeout=31536000