服务器的日志一直报Packet for query is too large (7632997 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.的解决方法
2017-05-11 11:19
851 查看
服务器的日志一直报Packet for query is too large (7632997 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.的解决方法
最近服务器上的项目老是频繁的就崩掉了,重启之后过了一晚第二天来就又挂了,查看tomcat的日志有报内存溢出的错误,还有报Packet for query is too large (7632997 > 4194304). You can change this value on the server by
setting the max_allowed_packet' variable.错误。服务上的数据库是mysql。然后查了一下资料是MySQL的一个系统参数问题:max_allowed_packet,其默认值为1048576(1M),查询:show VARIABLES like '%max_allowed_packet%';
修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(或更大,如果没有这行内容,增加一行),保存,重起MySQL服务。现在可以load大于1M的文件了。
注意)如果服务器上的mysql安装目录下找不到my.ini文件,可能是被隐藏,把它显示出来就行了。
原文博客的链接地址:https://cnblogs.com/qzf/
最近服务器上的项目老是频繁的就崩掉了,重启之后过了一晚第二天来就又挂了,查看tomcat的日志有报内存溢出的错误,还有报Packet for query is too large (7632997 > 4194304). You can change this value on the server by
setting the max_allowed_packet' variable.错误。服务上的数据库是mysql。然后查了一下资料是MySQL的一个系统参数问题:max_allowed_packet,其默认值为1048576(1M),查询:show VARIABLES like '%max_allowed_packet%';
修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(或更大,如果没有这行内容,增加一行),保存,重起MySQL服务。现在可以load大于1M的文件了。
注意)如果服务器上的mysql安装目录下找不到my.ini文件,可能是被隐藏,把它显示出来就行了。
原文博客的链接地址:https://cnblogs.com/qzf/
相关文章推荐
- Linux服务器上日志报com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1783 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.
- MySQL5中大数据错误:Packet for query is too large (****** > ******). You can change this value on the server by setting the max_allowed_packet' variable.;
- Packet for query is too large (1986748 > 1048576). You can change this value on the server by setting the max_allowed_pa
- packet for query is too large <1781> 1024 >. you can change this value on the server by setting the
- Packet for query is too large (1029 > 1024). You can change this value on the server by setting the
- Packet for query is too large (1032 > 1024). You can change this value on the server by setting the
- mysql Packet for query is too large (5058927 > 4194304). You can change this value on the server by
- 查询的时候Tomcat打印You can change this value on the server by setting the max_allowed_packet' variable解决方法
- Packet for query is too large (1986748 > 1048576). You can change this value on the server by
- 解决Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
- Packet for query is too large (2044 > 1024). You can change this value on the server.........
- You can change this value on the server by setting the 'max_allowed_packet' variable.
- mysql5中大数据错误:Packet for query is too large (***>***). You can change this value on the ser
- mysql5中大数据错误:Packet for query is too large (***>***). You can change this value on the ser
- mysql5中大数据错误:Packet for query is too large (1117260 > 1048576). You can change this value on the ser
- Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
- 【问题解决】Packet for query is too large (1165 > 1024). You can change this value
- Packet for query is too large (1166 > 1024). You can change this value
- Packet for query is too large (12238 > 1024). You can change this value
- Tomcat 报错:Packet for query is too large (12238 > 1024). You can change this value