electron connection lost:The server closed the connection

 

connection lost:The server closed the connection

 

 

 

其实很简单.mysql有个机制,就是8小时无通信,myslq就会自动关闭数据;

 

解决方案(2选1):

或者:

1.定时去做一个查询,就是 select * from XXX;

或者:

2.修改配置文件:

wait_timeout=31536000
interactive_timeout=31536000

posted @ 2021-08-11 10:44  三瑞  阅读(108)  评论(0编辑  收藏  举报