MySQL错误2006:mysql服务器已消失 [英] MySQL error 2006: mysql server has gone away

查看:152
本文介绍了MySQL错误2006:mysql服务器已消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在办公室中运行一台服务器来处理一些文件,并将结果报告给远程MySQL服务器.

I'm running a server at my office to process some files and report the results to a remote MySQL server.

文件处理需要一些时间,并且过程中途终止,并出现以下错误:

The files processing takes some time and the process dies halfway through with the following error:

2006, MySQL server has gone away

我听说过MySQL设置 wait_timeout ,但是是否需要在办公室或远程MySQL服务器上更改它?

I've heard about the MySQL setting, wait_timeout, but do I need to change that on the server at my office or the remote MySQL server?

推荐答案

检查连接是否容易,并在需要时重新建立连接.

It may be easier to check if the connection and re-establish it if needed.

有关此信息,请参见 PHP:mysqli_ping .

这篇关于MySQL错误2006:mysql服务器已消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆