The option parser detected a flag that needs a value but none was supplied, stopping the MySQL program from starting or running.
MySQL Error 71: EE_OPTION_REQUIRES_ARGUMENT occurs when a command-line or my.cnf option that expects a value is left empty. Supply the missing argument or remove the flag to resolve the issue.
%s: option '--%s' requires an argument. EE_OPTION_REQUIRES_ARGUMENT was added in 8.0.13.
The exact message is: %s: option '--%s' requires an argument
. MySQL raises this during startup of the server or any client utility when it parses options.
The parser finds an option like --user
or --host
without a value. Execution halts immediately to prevent undefined behavior.
Missing values after flags trigger the error.
A space or equal sign is required between the option and its value.
Shell quoting issues can strip the argument, making the flag appear empty to MySQL.
Copy-pasted scripts often drop values or include stray newlines that break option pairs.
Add the required value or delete the option.
Validate the change by rerunning the command.
If using a my.cnf file, move the option to the correct group and assign a value.
Quote arguments containing spaces so the shell passes them intact.
Server Startup - mysqld --datadir
without a path fails. Supply --datadir=/var/lib/mysql
.
Client Login - mysql --user
should be mysql --user=root
or mysql -u root
.
Batch Script - Environment variable substitution that returns empty triggers the error.
Verify variables before execution.
Use --option=value
form to guarantee the flag and value stay together.
Validate shell variables with conditional checks before passing them to MySQL.
Store options in .my.cnf
with explicit values and proper group headers.
Galaxy’s AI copilot highlights missing option arguments as you paste commands, preventing runtime failures.
ER_OPTION_PREVENTS_OPTION
occurs when mutually exclusive flags are combined. Remove the conflicting option.
EE_UNKNOWN_OPTION
means the flag is misspelled or unsupported. Correct the spelling or upgrade MySQL.
.
No. It only appears during option parsing for MySQL server and utilities.
Error 71 EE_OPTION_REQUIRES_ARGUMENT was added in MySQL 8.0.13.
Yes. A line like socket=
without a path in my.cnf will raise the error at startup.
Galaxy’s editor validates shell commands and highlights flags missing arguments, preventing the error before execution.