刚装了mysql8.0.1,用navicat登陆不了,报错“2059 - authentication plugin caching_sha2_password”,只能用命令行登陆。
- 解决办法:
1. 用命令行登陆
mysql -u root -p;
2. use mysql
3. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
4. flush privileges;
好了:)
网友评论