Warning
Error Code:
73
MySQL Error 73: Ignoring Invalid Option Value
Description
This error indicates that MySQL has encountered a command-line or configuration option with a value it considers invalid, causing the option to be ignored. It typically occurs during server startup or when executing commands that involve specific MySQL options, leading to unexpected behavior as the intended setting is not applied.
Error Message
%s: ignoring option '--%s' due to invalid value '%s'.
Known Causes
4 known causesIncorrect Option Value Format
The value provided for a MySQL option does not match the expected data type or format (e.g., a string where a number is required, or incorrect boolean syntax).
Typographical Error in Value
A simple typo, incorrect casing, or a missing character in the value assigned to an option makes it unrecognizable to MySQL.
Value Out of Permissible Range
The numerical value specified for an option exceeds its minimum or maximum allowed limits, or a path points to a non-existent location.
Deprecated or Unsupported Value
The specified option value is no longer supported or has been deprecated in the current MySQL version being used.
Solutions
3 solutions available1. Correct Misspelled Configuration Options easy
Identify and fix typos in MySQL configuration file options.
1
Locate your MySQL configuration file. This is typically `my.cnf` or `my.ini`. Common locations include `/etc/my.cnf`, `/etc/mysql/my.cnf`, `/usr/local/mysql/etc/my.cnf`, or within the MySQL data directory.
2
Open the configuration file in a text editor.
3
Carefully review the options and their values, paying close attention to the option mentioned in the error message (e.g., `--%s`). Look for any spelling mistakes or incorrect characters.
4
Correct any identified typos in the option name or its value. For example, if the error mentions `--max_conn` with an invalid value, and you intended `--max_connections`, correct the spelling.
Example correction:
# Incorrect:
# max_conn = 200
# Correct:
max_connections = 200
5
Save the changes to the configuration file.
6
Restart the MySQL server for the changes to take effect.
sudo systemctl restart mysql
2. Remove or Comment Out Invalid Options easy
Temporarily disable problematic configuration options if they are not essential.
1
Locate and open your MySQL configuration file (`my.cnf` or `my.ini`).
2
Identify the specific option and its invalid value that is causing the error message.
3
To disable the option, either delete the entire line or comment it out by adding a '#' character at the beginning of the line.
Example of commenting out:
# invalid_option = some_value
4
Save the configuration file.
5
Restart the MySQL server.
sudo systemctl restart mysql
3. Verify Option Syntax and Supported Values medium
Ensure the option syntax is correct and the provided value is valid for the MySQL version.
1
Identify the option and its value from the error message.
2
Consult the official MySQL documentation for your specific MySQL version to verify the correct syntax for the option and the range or type of valid values it accepts. Search for the option name (e.g., 'max_connections', 'innodb_buffer_pool_size').
Example search query: 'MySQL 8.0 max_connections documentation'
3
Compare the option and its value in your configuration file against the documentation. Pay attention to data types (e.g., integers, booleans, strings) and units (e.g., bytes, KB, MB).
4
If the value is incorrect (e.g., a string where an integer is expected, or a value outside the supported range), correct it according to the documentation.
Example correction for a value:
# Incorrect:
# innodb_buffer_pool_size = 1GB
# Correct (assuming 1GB is valid and syntax requires 'M' for Megabytes):
innodb_buffer_pool_size = 1024M
5
If the option itself is deprecated or removed in your MySQL version, remove or comment it out as per Solution 2.
6
Save the configuration file and restart the MySQL server.
sudo systemctl restart mysql