美文网首页
MySQL said: Authentication plugi

MySQL said: Authentication plugi

作者: pigLily | 来源:发表于2019-02-19 14:03 被阅读0次

    在用Navicat Premium连接本地mysql数据库时,出现的问题:
    MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found

    问题原因时:在连接本地数据库时不能加载‘cachaing_sha2_password’这个插件,也就是不能对身份验证。
    解决方案:
    1.打开系统偏好设置,找到mysql,点击Initialize Database。
    2.输入你的新密码,记住这个密码,在连接数据库时需要设置
    3.选择‘Use legacy password’。
    4.重启mysql服务。
    最后在重新使用Navicat Premium连接本地mysql数据库,就可以正常访问了

    相关文章

      网友评论

          本文标题:MySQL said: Authentication plugi

          本文链接:https://www.haomeiwen.com/subject/qxyxyqtx.html