Created
December 17, 2024 12:17
-
-
Save icai/6e97609099c0d4aef38b82b79d9357d3 to your computer and use it in GitHub Desktop.
mysql9 mysql_native_password fix without backup
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
mysql9 mysql_native_password fix | |
code /usr/local/etc/my.cnf | |
```ini | |
[mysqld] | |
skip-grant-tables | |
``` | |
brew services restart mysql | |
mysqldump -u root --all-databases > all_databases_backup.sql | |
after that, use the new one. | |
mysql -u root -p < all_databases_backup.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/var/mysql