从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;
原文地址:https://www.cnblogs.com/zhangyouwu/p/12609028.html
时间: 2024-12-28 05:15:48