3623
MySQLWARNINGCriticalAccess ControlHIGH confidence
Deprecated user option in CREATE/ALTER USER
Production Risk
Low — Warning only; the operation succeeds.
How to reproduce
trigger — this will error
trigger — this will error
CREATE USER 'user'@'%' IDENTIFIED BY PASSWORD 'old_hash';
expected output
Warning 3623: Deprecated user option used in CREATE USER.
Fix
Use current CREATE USER syntax
Use current CREATE USER syntax
CREATE USER 'user'@'%' IDENTIFIED BY 'plaintext_password';
Why this works
Uses the current, non-deprecated IDENTIFIED BY syntax.
What not to do
✕
Version notes
Sources
Official documentation ↗
MySQL 8.0 — 3623 ER_WARN_DEPRECATED_USER_OPTION
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev