Warning
Error Code:
82
MySQL Error 82: Configuration Value Adjusted
Description
This warning indicates that a value provided for a MySQL configuration option was outside its acceptable range or did not conform to the expected format. MySQL automatically adjusted the value to the closest valid setting to ensure continued operation. It often occurs during server startup or when applying new configuration changes.
Error Message
option '%s': value %s adjusted to %s.
Known Causes
4 known causesOut-of-Range Configuration Value
A numeric value specified for a server option (e.g., in my.cnf or via a SET statement) was less than the minimum or greater than the maximum allowed by MySQL.
Incorrect Data Type or Format
The value provided for an option might have been of an incompatible data type or did not adhere to the expected format, leading MySQL to round or truncate it.
System Resource Limitations
A desired configuration value might be deemed too high by MySQL due to underlying operating system limits or other internal constraints, resulting in an automatic down-adjustment.
Version Incompatibility for Options
An option's valid range or expected format might have changed between MySQL versions, causing a value valid in an older version to be adjusted in a newer one.
Solutions
3 solutions available1. Understand and Log the Configuration Change easy
Acknowledge the automatic adjustment and review MySQL logs for details.
1
The error message indicates that MySQL automatically adjusted a configuration value. This is often a safety mechanism. The most immediate action is to understand *why* it was adjusted.
2
Locate and examine your MySQL error log. This log will contain more detailed information about the specific option that was adjusted, the original value, and the new adjusted value. The location of the error log varies depending on your operating system and MySQL installation (e.g., `/var/log/mysql/error.log` on Linux, or in the data directory on Windows).
tail -n 50 /var/log/mysql/error.log # Example for Linux
3
Review the log entries around the time of the error. The output will look similar to the error message but will provide context. For example:
`2023-10-27T10:30:00.123456Z 17[Note] [MY-010916] [Server] [InnoDB] Setting innodb_buffer_pool_size = 1073741824 bytes.`
`2023-10-27T10:30:00.123456Z 17[Note] [MY-010916] [Server] [InnoDB] Setting innodb_buffer_pool_size = 1073741824 bytes.`
2. Explicitly Set the Configuration Value medium
Manually configure the problematic setting in your `my.cnf` or `my.ini` file.
1
Identify the specific configuration option and its adjusted value from the error message or log file. For example, if the error was `option 'innodb_buffer_pool_size': value 100G adjusted to 1073741824.`, the option is `innodb_buffer_pool_size`.
2
Open your MySQL configuration file. This is typically named `my.cnf` on Linux/macOS systems or `my.ini` on Windows. The location can vary, but common paths include `/etc/mysql/my.cnf`, `/etc/my.cnf`, or within the MySQL installation directory.
sudo nano /etc/mysql/my.cnf # Example for Linux
3
Add or modify the configuration option within the appropriate section (usually `[mysqld]`). Ensure you use a valid and appropriate value. For instance, if the adjusted value was `1073741824` bytes, you might want to set it to `1G` for readability.
[mysqld]
innodb_buffer_pool_size = 1G
4
Save the configuration file and restart the MySQL server for the changes to take effect.
sudo systemctl restart mysql # Example for systemd-based Linux
# or
net stop MySQL && net start MySQL # Example for Windows
3. Adjust System Resources or MySQL Limits advanced
Ensure your system has sufficient resources or adjust MySQL's memory limits.
1
The error often occurs when a configuration value (like `innodb_buffer_pool_size` or `max_connections`) is set too high for the available system resources (RAM, CPU) or exceeds MySQL's internal limits. Review the system's available memory using tools like `free -h` (Linux) or Task Manager (Windows).
free -h
2
If the system is low on RAM, you'll need to either increase the system's RAM or reduce the memory-intensive MySQL configuration values. For example, if `innodb_buffer_pool_size` was automatically reduced, consider setting it to a smaller value that fits within your available RAM, leaving enough for the operating system and other processes.
3
If the issue is related to connection limits (e.g., `max_connections`), ensure your system can handle the number of concurrent connections. You might need to increase system limits for file descriptors or network buffers, or optimize your application to reduce the number of open connections.
4
After making system-level adjustments or reducing MySQL configuration values, restart the MySQL server.
sudo systemctl restart mysql # Example for systemd-based Linux