Navicat
连接 MySQL8.0
报错:2059 - authentication plugin ‘caching_sha2_password’ -navicat
安装 MySQL
的时候为了安全(想用新特性),在选择密码形式的时候,选了新型 caching_sha2_password
密码。谁曾想 Navicat
不支持这种格式。
解决办法
管理员模式打开Cmd、登录MySQL
1 | mysql -u root -p |
查询,修改密码插件
- 查询
1
2use mysql
select user,host,plugin,authentication_string from user; - 修改
1
2alter user 'root'@'localhost' identified with mysql_native_password by 'xxxxx';
# 这里的 root 是默认用户名,'xxxxx'这里换成你的默认密码 - 刷新缓存
1
flush privileges;
- 本文链接: https://anyway521.github.io/post/d8d335b6.html
- 最后更新:
- 版权声明: 博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议进行许可,转载请注明出处!