connection lost:The server closed the connection

 electron  connection lost:The server closed the connection

 

 

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

 

解决方案(2选1):

或者:

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

或者:

2.修改配置文件:

wait_timeout=31536000
interactive_timeout=31536000

相关文章:

  • 2021-06-30
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-11-28
  • 2021-10-11
相关资源
相似解决方案