本文介紹了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.
See PHP:mysqli_ping for info on that.
這篇關于MySQL 錯誤 2006:mysql 服務器已消失的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!