Home > Database > Mysql Tutorial > MySQL Got a packet bigger than 'max_allowed_packet' bytes异

MySQL Got a packet bigger than 'max_allowed_packet' bytes异

WBOY
Release: 2016-06-07 16:14:40
Original
1374 people have browsed it

MySQL Got a packet bigger than 'max_allowed_packet' bytes错误 今天用Navicat Premium执行数据插入命令,一共3万多条记录吧,导入数据库时提示: Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误提示。 开始没注意,提示一大堆

MySQL Got a packet bigger than 'max_allowed_packet' bytes错误

今天用Navicat Premium执行数据插入命令,一共3万多条记录吧,导入数据库时提示:

Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误提示。
开始没注意,提示一大堆,后来才看见这句
使用Navicat Premium工具导出MySQL数据时,当数据量大时,导出不会错误,但导入时会出现错误。如果将SQL单独执行会发现是Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误。
对于这个问题可以在my.ini中最后增加一行max_allowed_packet=16M即可(根据实际情况设置)。

注意,在[client]和[mysql]部分增加无效,那个是客户端读取的参数。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template