Created
November 24, 2024 17:07
-
-
Save rana01645/7e64d7ae6b5e8b10f647d95d31f1d601 to your computer and use it in GitHub Desktop.
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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