这是一个创建于 3666 天前的主题,其中的信息可能已经有所发展或是发生改变。
ERR [Sun Nov 09 2014 06:52:16 GMT+0800 (CST)] Error: Connection lost: The server closed the connection.
ERR [Sun Nov 09 2014 06:52:16 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 06:52:18 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 08:21:41 GMT+0800 (CST)] Error: Connection lost: The server closed the connection.
ERR [Sun Nov 09 2014 08:21:41 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 09:55:45 GMT+0800 (CST)] Error: Connection lost: The server closed the connection.
ERR [Sun Nov 09 2014 09:55:45 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 09:55:47 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 11:32:28 GMT+0800 (CST)] Error: Connection lost: The server closed the connection.
ERR [Sun Nov 09 2014 11:32:28 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
ERR [Sun Nov 09 2014 11:32:30 GMT+0800 (CST)] Mysql Connect error: connect ECONNREFUSED
昨天刚做好的博客系统 用 Supervisor 运行,一天多 数据库断了4次,被杀了十几次
3 条回复 • 2014-11-10 10:46:30 +08:00
|
|
1
ipconfiger 2014-11-10 10:21:39 +08:00
在连接空置断开前,自己主动断了重连就行了
|
|
|
2
typcn 2014-11-10 10:41:00 +08:00 via iPad
@ ipconfiger 我想保持长连接,可以通过修改配置文件实现吗?
|
|
|
3
ipconfiger 2014-11-10 10:46:30 +08:00 1
MySQL有个连接空闲XX时间就断开的设置,要么去MySQL禁用掉这个设置,要么 就按我说这个办法,其实仍然是长连接的,所谓长连接并不是永远连接的意思。
|