MySQL安装之后无法用工具连接上本地数据库
详情原因可见:
https://mysqlserverteam.com/mysql-8-0-4-new-default-authentication-plugin-caching_sha2_password/
解决办法,修改密码;
1.修改密码
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '111111';
2.将表中信息同步到内存中:
FLUSH PRIVILEGES;
再连接便可以顺利连接。