How to change max_allowed_packet value in mysql?
2008-06-08 13:58
501 查看
[align=center] [/align]
If you set it in the cnf(it may be my.ini file) you will likely need to restart the server. Optionally, that is a dynamic variable and can be SET GLOBAL or SET SESSION from the command line as well.So just do as follows.
mysql>show variables like’max_allowed_packet’;
mysql>set global max_allowed_packet=67108864;
mysql>exit;
Note: If you don't use global or use session,after execute exit command,max_allowed_packet value will be still 1048576.
If you set it in the cnf(it may be my.ini file) you will likely need to restart the server. Optionally, that is a dynamic variable and can be SET GLOBAL or SET SESSION from the command line as well.So just do as follows.
mysql>show variables like’max_allowed_packet’;
mysql>set global max_allowed_packet=67108864;
mysql>exit;
Note: If you don't use global or use session,after execute exit command,max_allowed_packet value will be still 1048576.
相关文章推荐
- How to change max_allowed_packet value in mysql?
- Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
- 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.
- 解决Mysql You can change this value on the server by setting the max_allowed_packet' variable. 异常
- Mysql 导入 sql 文件报错 Your 'max_allowed_packet' variable is set to less than 16777216 Byte
- 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
- MySQL how to calculate average value of max/min N records by group
- You can change this value on the server by setting the 'max_allowed_packet' variable.
- mysql Writing to net & max_allowed_packet
- 服务器的日志一直报Packet for query is too large (7632997 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.的解决方法
- 查询的时候Tomcat打印You can change this value on the server by setting the max_allowed_packet' variable解决方法
- MySQL system variable 'max_allowed_packet' is set to (1MB).
- 解决mysql的max_allowed_packet重置为1024的问题
- windows MySQL 报“Got a packet bigger than 'max_allowed_packet' bytes”错误,解决过程.
- MySQL system variable 'max_allowed_packet'
- mysql 批量插入受参数配置限制的解决 max_allowed_packet
- How To Use MySQL Easily In PHP
- 解决MySQL数据导入报错Got a packet bigger than‘max_allowed_packet’bytes
- Mysql文件大小限制,max_allowed_packet查询和修改,