好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

MySQL数据库出现Authentication plugin怎么办

MySQL数据库出现Authentication plugin怎么办?

连接MySQL数据库时会出现Authentication plugin 'caching_sha2_password' cannot be loaded的错误,解决方法如下:

1.登录mysql

2.修改账户密码加密规则并更新用户密码

   ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;   #修改加密规则 
   ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';   #更新一下用户的密码

1.刷新权限

FLUSH PRIVILEGES; #刷新权限

再次运行,就发现没有这个错误了。

推荐:《mysql教程》

以上就是MySQL数据库出现Authentication plugin怎么办的详细内容,更多请关注Gxlcms其它相关文章!

查看更多关于MySQL数据库出现Authentication plugin怎么办的详细内容...

  阅读:48次