Home >Database >Mysql Tutorial >Packet for query is too large (1986748 > 1048576). Yo_MySQL

Packet for query is too large (1986748 > 1048576). Yo_MySQL

WBOY
WBOYOriginal
2016-06-01 13:49:27903browse

bitsCN.com

MySQL的一个系统参数:max_allowed_packet,其默认值为1048576(1M),
查询:show VARIABLES like '%max_allowed_packet%';
修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(或更大,如果没有这行内容,增加一行),保存,重起MySQL服务。现在可以load大于1M的文件了。

bitsCN.com
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