Common SQL Errors

MySQL Error 70: EE_OPTION_WITHOUT_ARGUMENT – Meaning, Causes, Fixes, and Prevention

Galaxy Team
August 5, 2025

The server or client was started with an option that does not accept an argument, yet an argument was supplied.

Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is MySQL Error 70 (EE_OPTION_WITHOUT_ARGUMENT)?

MySQL Error 70: EE_OPTION_WITHOUT_ARGUMENT appears when you give a value to a command-line or option-file flag that must stand alone, such as --no-data. Remove the “=value” or extra token and restart the command to resolve the issue.

Error Highlights

Typical Error Message

%s: option '--%s' cannot take an argument. EE_OPTION_WITHOUT_ARGUMENT was added in 8.0.13.

Error Type

Configuration Error

Language

MySQL

Symbol

EE_OPTION_WITHOUT_ARGUMENT

Error Code

70

SQL State

Explanation

Table of Contents

What is MySQL Error 70 (EE_OPTION_WITHOUT_ARGUMENT)?

Error 70 (EE_OPTION_WITHOUT_ARGUMENT) is thrown when any MySQL program sees an option that must not receive a value but is supplied with one. The message format is “%s: option '--%s' cannot take an argument.”

The condition was introduced in MySQL 8.0.13 to fail fast on invalid syntax.

It occurs in the server, client utilities, and plugins that parse my.cnf files or command-line arguments.

What Causes This Error?

MySQL emits Error 70 if an option defined as “no_argument” in the source code is passed using either the = delimiter or a following token. Examples include --help, --skip-grant-tables, --no-data, and --verbose.

Configuration files trigger the same error when they contain a space or = after a no-argument flag.

The parser treats any following characters as an argument and raises the condition.

How to Fix MySQL Error 70 (EE_OPTION_WITHOUT_ARGUMENT)

Verify the offending option in the error text, then remove its argument. Write the flag exactly as documented: a double dash followed immediately by the option name and nothing else.

After editing the command or configuration file, rerun the program.

The utility should now start without complaining about invalid arguments.

Common Scenarios and Solutions

mysqldump --no-data=true db - Remove “=true” and use “--no-data” only.

mysqlpump --add-drop-table yes db - Delete “yes” or change to “--add-drop-table” alone.

Best Practices to Avoid This Error

Always consult --help output or the MySQL manual before adding new flags. Copy options exactly, avoiding extra spaces or = signs.

Version-control option files and review diffs in pull requests.

Static checks in CI can catch malformed flags before they reach production.

Related Errors and Solutions

Error 71 EE_OPTION_REQUIRES_ARGUMENT arises when an option that needs a value is missing one; supply a proper argument to fix.

Error 1231 ER_WRONG_VALUE_FOR_VAR occurs when a system variable receives an unacceptable value; ensure the value fits the allowed set.

.

Common Causes

Related Errors

FAQs

Does Error 70 affect SQL statements?

No. It is triggered before the server or client starts processing SQL, during option parsing.

Which MySQL versions raise EE_OPTION_WITHOUT_ARGUMENT?

Versions 8.0.13 and later include this error code. Earlier releases silently ignored the extra value.

Can I disable the strict option check?

No supported flag exists to bypass argument validation. Correct the option syntax instead.

How does Galaxy help avoid this error?

Galaxy’s connection dialog validates flags and shows inline docs, preventing misconfigured no-argument options.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo