Home >Database >Mysql Tutorial >[Err]2006-MySQLserverhasgoneaway_MySQL

[Err]2006-MySQLserverhasgoneaway_MySQL

WBOY
WBOYOriginal
2016-06-01 11:52:271385browse

1、错误描述

 

[Err] 2006 - MySQL server has gone away

2、错误原因

 

在将数据库脚本利用MySQL客户端导入时,出现这个错误;结果查明,由于脚本中的insert语句过多,插入数据量过大,导致MySQL客户端和服务器连接断开

 

3、解决办法

(1)修改MySQL配置文件my.ini

设置max_allowed_packed参数

(2)查看MySQL连接是否超时

(3)查看服务是否中断

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
Previous article:mysql中的事务_MySQLNext article:MySQL常用脚本_MySQL