Home  >  Article  >  Database  >  mysql导入数据提示的MySQL server has gone away解决办法

mysql导入数据提示的MySQL server has gone away解决办法

WBOY
WBOYOriginal
2016-06-07 17:52:401188browse

昨天在利用mysql导入数据时提示的MySQL server has gone away,这话的意思就是服务器挂了,但过一下就好了,我想会不会是因为数据包太大了呢,后来百度了一下找到了解决办法。

问题原因

max_allowed_packet太小导致的。将max_allowed_packet改大

解决办法

在my.cnf文件中修改

max_allowed_packet 改大一些再导入即可解决。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn