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