轉自:https://blog.csdn.net/u010026255/article/details/80062153css
問題:caching-sha2-passwordhtml
處理:mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密規則
sql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用戶的密碼
FLUSH PRIVILEGES; #刷新權限
app
再重置下密碼:alter user 'root'@'localhost' identified by '123qwe';ide