The server adjusted an out-of-range unsigned numeric option to the nearest allowed value and returned warning 81.
MySQL Error 81: EE_ADJUSTED_UNSIGNED_VALUE_FOR_OPTION occurs when you pass a negative or over-max unsigned integer to a server or session option. MySQL silently clamps the value and issues warning 81. Supply a valid in-range unsigned number or remove the option to resolve the issue.
option '%s': unsigned value %s adjusted to %s. EE_ADJUSTED_UNSIGNED_VALUE_FOR_OPTION was added in 8.0.13.
Error 81 appears as “option '%s': unsigned value %s adjusted to %s”. It is a server warning, introduced in 8.0.13, that notifies you MySQL changed an unsigned integer option because the supplied value was out of range.
The message is global, so it can originate during server startup, a SET GLOBAL/SESSION statement, or client utilities that forward options to the server.
Ignoring the warning may lead to unexpected performance or memory settings.
MySQL raises warning 81 when a numeric option defined as UNSIGNED is given a negative number or one larger than its maximum. The server coerces the value to the nearest boundary (0 or the max) and records the adjustment.
Options commonly affected include max_allowed_packet, thread_cache_size, group_concat_max_len, and any plugin variables declared UNSIGNED.
The problem is often triggered by typo, unit miscalculation, or automated configuration scripts.
Find the exact option named in the warning, review the value you supplied, then set a legal unsigned integer. Restart the server or re-issue SET statements after correction.
If the setting is unnecessary, omit it entirely.
When passing options from the command line, quote large values to avoid shell expansion and always double-check unit conversions (k/m/g suffixes are not accepted for every variable).
Server startup: my.cnf contains max_allowed_packet=-1. Change to 67108864 (64M) and restart mysqld.
Session change: SET SESSION group_concat_max_len = 18446744073709551616; produces warning 81.
Use 18446744073709551615, the documented maximum.
Keep a version-specific checklist of variable limits and validate custom my.cnf files with mysqld --verbose --help before deploying.
Automate configuration through tools like Ansible that include range validators. Galaxy’s SQL editor can store vetted SET statements in endorsed collections to prevent typo-driven misconfigurations.
Error 1238 (ER_VARIABLE_NOT_SETTABLE_IN_SP): raised when trying to set a read-only variable.
Check variable scope.
Error 1231 (ER_WRONG_VALUE_FOR_VAR): occurs when a variable receives an invalid value of the correct type. Provide an allowed literal.
.
No. It is a warning, the server starts or continues running after clamping the value.
Inspect the error log or run SHOW GLOBAL VARIABLES and compare against your configuration file.
If the option is in my.cnf, the clamped value is applied at every startup until you fix the file. Session adjustments disappear after disconnect.
Yes. Store validated SET statements in Galaxy Collections and share endorsed versions to prevent colleagues from applying invalid numeric values.