使用mysql自带的 MySQL 8.0 Command Line Client - Unicode 登录,
然后使用命令:
alter user 'root'@'localhost' identified with mysql_native_password by 'root';
进行密码的更新;
alter user 'root'@'localhost' identified with mysql_native_password by 'root';
alter user 'root'@'localhost' identified with mysql_native_password by 'root';