Loading... ## mysql install最新安装器安装mysql服务 - 安装过程大致都是下一步下一步,具体解决的问题是安装过程中出现的错误,还有启动服务时出现的错误 - [csdn上详细安装过程](https://blog.csdn.net/weixin_41360517/article/details/97633969) - 在安装mysql时,到最后一步如果出现,Unable to connect to any of the specified MySQL hosts ,这说明 mysql 的服务已经安装完毕,只是启动失败,具体解决方法为 [csdn链接](https://blog.csdn.net/u014776759/article/details/88422967) - 在服务中找到mysql的服务 - 右键点击“属性”——“登录”,选择“本地系统账户”即可 - 完成安装后使用 Navicat 进行数据库的链接,出现错误 **2059 - Authentication plugin 'caching_sha2_password' cannot be loaded ** ,这个错误是因为目前已有的客户端连接软件还不支持 Mysql8 新增加的加密方式**caching_sha2_password**,所以我们需要修改用户的加密方式,将其改为老的加密验证方式。 [csdn链接](https://blog.csdn.net/weixin_41286794/article/details/81382234) - use mysql; - select user,plugin from user where user='root'; 可以看到当前用户的加密方式为 **caching_sha2_password** - ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 修改加密方式 - select host,user,plugin from mysql.user; 查询出来现在的加密方式是什么 - 再测试下即可登录成功 最后修改:2020 年 08 月 28 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 哇卡哇卡