客戶端鏈接caching-sha2-password 報錯問題

轉自:https://blog.csdn.net/u010026255/article/details/80062153css

問題:caching-sha2-passwordhtml

處理:mysql

    ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密規則 
   ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用戶的密碼 
sql

   FLUSH PRIVILEGES; #刷新權限 app

再重置下密碼:alter user 'root'@'localhost' identified by '123qwe';ide

相關文章
相關標籤/搜索