MySQL Variables max_error_count 数据库 参数变量解释及正确配置使用

本站中文解释

max_error_count参数变量用于设置MySQL对单个查询出错的最大次数,如果出错次数超过max_error_count,则该查询会失败并返回错误。

该参数变量可以通过在MySQL控制台上执行命令“SET GLOBAL max_error_count=n”来设置,其中n是要设置的次数,可以是任意整数。也可以在MySQL的配置文件中设置,位置一般在my.cnf或my.ini中,[mysqld]段落内设置。

官方英文解释

max_error_count

Command-Line Format --max-error-count=#
System Variable max_error_count
Scope Global, Session
Dynamic Yes
Type Integer
Default Value 64
Minimum Value 0
Maximum Value 65535

The maximum number of error, warning, and information messages
to be stored for display by the SHOW
ERRORS
and SHOW
WARNINGS
statements. This is the same as the number
of condition areas in the diagnostics area, and thus the
number of conditions that can be inspected by
GET DIAGNOSTICS.


数据运维技术 » MySQL Variables max_error_count 数据库 参数变量解释及正确配置使用