1647
MySQLERRORCommonAccess ControlHIGH confidence

Access denied for user (no password provided)

Production Risk

High — application connections will fail until credentials are corrected.

What this means

Access was denied because the user account requires a password but none was provided in the connection attempt.

Why it happens
  1. 1The client connected without specifying -p or providing a password.
  2. 2The application connection string is missing the password field.
How to reproduce
trigger — this will error
trigger — this will error
mysql -u myuser

expected output

ERROR 1647 (28000): Access denied for user 'myuser'@'localhost' (using password: NO)

Fix 1

Provide the password in the connection

Provide the password in the connection
mysql -u myuser -p

Why this works

Supplying the correct password satisfies the authentication requirement.

Fix 2

Check application connection strings

Check application connection strings
-- Ensure PASSWORD is set in your application DSN or config file

Why this works

Missing passwords in config files are a common cause of this error in applications.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 1647 ER_ACCESS_DENIED_NO_PASSWORD_ERROR

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MySQL errors