navicat连接mysql80报caching_sha2_password错误


mysql80连接navicat

两种修改mysql密码加密方式的方法

  • 修改配置文件

    default_authentication_plugin=caching_sha2_password 修改为:

    default_authentication_plugin=mysql_native_password

  • 使用命令进行更改

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

    alter user 'root'@'localhost' identified by '你自己的密码'; #再重置下密码:
    flush privileges; #刷新权限


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM