解决MySql - 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. 的问题

 Communications link failure解决方法,我借鉴的别人的,延长MySQL的连接时间

#查询连接的时间

show global variables like 'wait_timeout';

#修改连接的时间
set global wait_timeout=604800;

posted @ 2022-04-11 09:14  xiao-jie-tian  阅读(3700)  评论(0)    收藏  举报