mysql8.0版本
報(bào)錯(cuò):Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
解決辦法(修改加密規(guī)則為普通模式,默認(rèn)是嚴(yán)格加密模式):
1.打開命令行小黑屏付燥,進(jìn)入MySQL的bin目錄免姿,然后輸入mysql -u root -p宿接,輸入密碼
2.然后依次輸入
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; (修改加密規(guī)則 (必寫))
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; (更新用戶密碼 )
FLUSH PRIVILEGES; #刷新權(quán)限(不輸入也可以)
3.輸入剛剛修改的密碼弱卡,再次測(cè)試連接,搞定