您的位置:首页 > 产品设计 > UI/UE

How to change max_allowed_packet value in mysql?

2010-01-19 14:41 585 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐