sqlyong连接mysql8.0时出现2058解决

用SQLyog连接MySQL8.0(社区版:mysql-installer-community-8.0.15.0.msi),出现错误2058(Plugin caching_sha2_password could not be loaded:xxxx),通过查询资料了解了该错误的原因并在本文中提出了该问题的方案。

 

以下解决方法

 

登录mysql

进入MySQL库

查询user host

 

 执行语句

 

ALTER USER 'root'  @  '%'   IDENTIFIED WITH mysql_native_password BY '123456';  

      user值     host值                     root的密码

连接成功

 

posted @ 2021-01-14 21:49  一g小松许  阅读(145)  评论(0)    收藏  举报