概述
展开全部
官方关于2013和2006错误代码产生原因和解决方案
一、错误代码
Error: 2013
(CR_SERVER_LOST)
Message: Lost connectionto MySQL server during
query
Error: 2006 (CR_SERVER_GONE_ERROR)
Message: MySQL server
has gone
away
二、错误代码原因
错误代码
描述
CR_SERVER_GONE_ERROR
客户32313133353236313431303231363533e78988e69d8331333335333663端无法向服务器发送请求
CR_SERVER_LOST
当向服务器写入时无法获取错误,但无法获取请求的完整应答。
主要原因和解决办法:
By
default, the server closes the connectionafter eight hours if nothing has
happened. You can change the time limit by setting the wait_timeout
variable when you start
mysqld.
默认服务器在8小时后关闭连接,可以通过参数wait_timeout,然后重启mysqld服务来修改默认值。
If
you have a script, you just have to issue the query again for the client to do
an automatic reconnectio
最后
以上就是微笑衬衫为你收集整理的mysql cr server lost_lost connection to mysql server at reading initial communication packet system ...的全部内容,希望文章能够帮你解决mysql cr server lost_lost connection to mysql server at reading initial communication packet system ...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复