mysql80连接navicat
两种修改mysql密码加密方式的方法
修改配置文件
default_authentication_plugin=caching_sha2_password 修改为:
default_authentication_plugin=mysql_native_password
使用命令进行更改
alter USER 'root'@'localhost' identified BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则
alter USER 'root'@'localhost' identified WITH mysql_native_password BY 'password'; #更新一下用户的密码alter user 'root'@'localhost' identified by '你自己的密码'; #再重置下密码:
flush privileges; #刷新权限
本文详细介绍了如何在MySQL 8.0中修改密码加密方式,包括通过配置文件和SQL命令两种方法,使Navicat等客户端能够正常连接。
2262

被折叠的 条评论
为什么被折叠?



