解决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;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM