Lab-verifiedReproduced and fixed on MySQL 8.4.13 · 2026-11-30 · container image mysql:8.4
Old setup scripts and many answers online create users IDENTIFIED WITH mysql_native_password. On MySQL 8.4 that plugin is disabled by default, and the statement fails with ERROR 1524.
information_schema.plugins shows it directly: in our 8.4.13 container mysql_native_password was DISABLED and caching_sha2_password was ACTIVE. Below are the two statements that hit it and what worked instead.
01CREATE USER ... IDENTIFIED WITH mysql_native_password (old script)
Running CREATE USER 'app_user'@'%' IDENTIFIED WITH mysql_native_password BY '...' failed with Plugin 'mysql_native_password' is not loaded, and no user was created.
The plugin check showed mysql_native_password = DISABLED. Dropping the WITH mysql_native_password part created the user with the default caching_sha2_password, and logging in with the mysql client worked (CURRENT_USER() = app_user@%).
Setup
CREATE DATABASE shop;Query OK, 1 row affected (0.01 sec)CREATE USER 'app_user'@'%' IDENTIFIED WITH mysql_native_password BY 'App_Pw_2026';ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loadedSELECT plugin_name, plugin_status FROM information_schema.plugins WHERE plugin_name IN ('mysql_native_password', 'caching_sha2_password');+-----------------------+---------------+
| plugin_name | plugin_status |
+-----------------------+---------------+
| caching_sha2_password | ACTIVE |
| mysql_native_password | DISABLED |
+-----------------------+---------------+
2 rows in set (0.00 sec)CREATE USER 'app_user'@'%' IDENTIFIED BY 'App_Pw_2026';
GRANT ALL ON shop.* TO 'app_user'@'%';
SELECT user, host, plugin FROM mysql.user WHERE user = 'app_user';Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.01 sec)
+----------+------+-----------------------+
| user | host | plugin |
+----------+------+-----------------------+
| app_user | % | caching_sha2_password |
+----------+------+-----------------------+
1 row in set (0.00 sec)$ mysql -h 127.0.0.1 -u app_user -p'App_Pw_2026' shopSELECT CURRENT_USER();+----------------+
| CURRENT_USER() |
+----------------+
| app_user@% |
+----------------+
1 row in set (0.00 sec)02ALTER USER ... IDENTIFIED WITH mysql_native_password (for an old client)
A common workaround for old drivers is to switch an existing user to the old plugin. On 8.4 ALTER USER 'app_user'@'%' IDENTIFIED WITH mysql_native_password BY '...' failed with ERROR 1524.
Keeping the account on caching_sha2_password (ALTER USER ... IDENTIFIED WITH caching_sha2_password BY '...') worked, and the login succeeded with the 8.4 mysql client.
Setup
CREATE DATABASE shop;
CREATE USER 'app_user'@'%' IDENTIFIED BY 'App_Pw_2026';
GRANT ALL ON shop.* TO 'app_user'@'%';Query OK, 1 row affected (0.00 sec)
Query OK, 0 rows affected (0.01 sec)
Query OK, 0 rows affected (0.00 sec)ALTER USER 'app_user'@'%' IDENTIFIED WITH mysql_native_password BY 'App_Pw_2026';ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loadedALTER USER 'app_user'@'%' IDENTIFIED WITH caching_sha2_password BY 'App_Pw_2026';
SELECT user, host, plugin FROM mysql.user WHERE user = 'app_user';Query OK, 0 rows affected (0.00 sec)
+----------+------+-----------------------+
| user | host | plugin |
+----------+------+-----------------------+
| app_user | % | caching_sha2_password |
+----------+------+-----------------------+
1 row in set (0.00 sec)If an application cannot log in with caching_sha2_password, the usual direction is to update its MySQL driver/connector. We only tested the 8.4 mysql client here.
$ mysql -h 127.0.0.1 -u app_user -p'App_Pw_2026' shopSELECT CURRENT_USER();+----------------+
| CURRENT_USER() |
+----------------+
| app_user@% |
+----------------+
1 row in set (0.00 sec)FAQ
Why does mysql_native_password fail in MySQL 8.4?
The plugin is disabled by default in 8.4. In our container information_schema.plugins listed it as DISABLED, so CREATE USER and ALTER USER that name it return ERROR 1524.
What should I use instead of mysql_native_password?
caching_sha2_password, the default. Just omit IDENTIFIED WITH mysql_native_password (or write IDENTIFIED WITH caching_sha2_password).
How do I check which authentication plugin a user has?
SELECT user, host, plugin FROM mysql.user WHERE user = '...';. Our fixed user showed caching_sha2_password.
How we verify
Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.
lab_a and lab_b are ordinary users created for the test, each with full rights on a database of the same name (its default database); root is the administrator. MySQL 8.4.13