> cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"
> mysql -u root -p
Enter password: # 直接回车
mysql> use mysql
mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
mysql> flush privileges;
over
> cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"
> mysql -u root -p
Enter password: # 直接回车
mysql> use mysql
mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
mysql> flush privileges;
over