mysql 的最大查询大小是多少?

2021-11-20 00:00:00 wamp 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_pa​​cket=10485761 MiB

This gives you the answer in bytes. for e.g max_allowed_packet=1048576 or 1 MiB

相关文章