标签:host net sel 默认 ges exp 地址 blog root
1,登陆后可查询默认加密规则,键入
use mysql;
select user,plugin from user where user =‘root‘;
解决办法;
更改加密方式:ALTER USER‘root‘@‘localhost‘ IDENTIFIED BY ‘password‘ PASSWORD EXPIRE NEVER;
更新用户密码:ALTER USER‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘password‘;
刷新权限:FLUSH PRIVILEGES;
--------------------- 本文来自 郑先生的喵 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/pan_zzq/article/details/81078564?utm_source=copy
标签:host net sel 默认 ges exp 地址 blog root
原文地址:https://www.cnblogs.com/uncle-kay/p/9751805.html