Common SQL Errors

MySQL Error 72: EE_SHORT_OPTION_REQUIRES_ARGUMENT - How to Fix and Prevent

Galaxy Team
August 5, 2025

MySQL Error 72 occurs when a required argument for a short command-line option (such as -u, -p, or -h) is missing, causing the client or server to exit with an error.

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 code 72 (EE_SHORT_OPTION_REQUIRES_ARGUMENT)?

MySQL Error 72: EE_SHORT_OPTION_REQUIRES_ARGUMENT signals that a short option like -u or -p was provided without the mandatory value. Supply the missing argument or switch to the long option format to resolve the issue.

Error Highlights

Typical Error Message

%s: option '-%c' requires an argument. EE_SHORT_OPTION_REQUIRES_ARGUMENT was added in 8.0.13.

Error Type

Configuration Error

Language

MySQL

Symbol

EE_SHORT_OPTION_REQUIRES_ARGUMENT

Error Code

72

SQL State

Explanation

Table of Contents

What does the error look like?

mysqld: option '-p' requires an argument (Error 72, EE_SHORT_OPTION_REQUIRES_ARGUMENT). The program stops before connecting or starting.

Why does MySQL raise Error 72?

The MySQL option parser treats single-dash flags followed by one letter as short options. If that option needs a value, the parser expects the value to appear immediately after the flag or as the next token.

When the value is absent, MySQL aborts execution and throws Error 72.

When was the error introduced?

EE_SHORT_OPTION_REQUIRES_ARGUMENT was added in MySQL 8.0.13 to clarify option misuse. Earlier versions exited silently or with a generic error.

Impact on scripts and automation

Build pipelines, cron jobs, and container entrypoints that omit required arguments will fail fast.

Continuous integration systems may report failed deployments, and backups scheduled through mysqldump can silently skip runs.

How Galaxy can help

Galaxy’s connection dialogs validate required parameters before launching the MySQL client, preventing Error 72. The AI copilot also flags incomplete command examples shared in Collections.

.

Common Causes

Related Errors

FAQs

Can I leave -p without a password and type it interactively?

Yes. When you invoke "mysql -p" with no password value, MySQL prompts you interactively. The error only appears if space separation leaves the parser thinking the argument is missing.

Does this error appear in MySQL server startup?

Yes. Starting mysqld with a short option that needs a value, like -g or -P, without the argument, will trigger Error 72 before the server initializes.

Will upgrading MySQL change my scripts?

Scripts that relied on older silent behavior may now fail on 8.0.13+. Review and update command lines to include all required arguments.

How does Galaxy stop this error?

Galaxy requires host, user, and password fields in its connection modal. Missing values are flagged before any CLI call, eliminating Error 72 in routine use.

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