我是靠谱客的博主 微笑衬衫,这篇文章主要介绍mysql cr server lost_lost connection to mysql server at reading initial communication packet system ...,现在分享给大家,希望可以做个参考。

展开全部

官方关于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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部