從MySql5.7版本跳到了Mysql 8.0的版本,安裝的時候提示鏈接加密方式已經改變

解決辦法: 更改加密方式;
1.以root賬戶用戶登錄Mysql:
mysql -u root -p
2.更改加密方式:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
3.更改密碼:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼';
4.刷新:
FLUSH PRIVILEGES;
