Skip to content

Instantly share code, notes, and snippets.

@rana01645
Created November 24, 2024 17:07
Show Gist options
  • Save rana01645/7e64d7ae6b5e8b10f647d95d31f1d601 to your computer and use it in GitHub Desktop.
Save rana01645/7e64d7ae6b5e8b10f647d95d31f1d601 to your computer and use it in GitHub Desktop.
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded
This is how I solved this problem, on MySQL 9 and it doesn't use a password for the root user.
brew services stop mysql
mysqld_safe --skip-grant-tables &
mysql -u root
USE mysql;
UPDATE user SET plugin = 'caching_sha2_password' WHERE User = 'root';
EXIT;
killall mysqld
brew services start mysql
and now you can access as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment