mysql的最大查询大小是多少? [英] What is maximum query size for mysql?
本文介绍了mysql的最大查询大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
mysql的最大查询大小是多少?有时,当我触发一个太长的查询时,服务器会停止工作.
What is maximum query size for mysql? Some times the server stops working when I fire a too long query.
推荐答案
您可以检查当前 服务器设置:
You can check your current server setting with:
SHOW VARIABLES LIKE 'max_allowed_packet';
这为您提供了以字节为单位的答案.例如max_allowed_packet=1048576
或1mb
This gives you the answer in bytes. for e.g max_allowed_packet=1048576
or 1mb
这篇关于mysql的最大查询大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文