開始中找到MySql8.0 Command Line Client 打開后分別執行以下命令
// 修改加密規則
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
// 更新一下用戶的密碼
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
// 刷新權限
FLUSH PRIVILEGES;
// 最后重置下密碼:
alter user 'root'@'localhost' identified by '123456';
