解決Navicat for MySQL 連接 Mysql 8.0.11 出現(xiàn)1251- Client does not support authentication protocol 錯(cuò)誤
控制臺(tái)登陸后只需兩步解決:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用戶的密碼
FLUSH PRIVILEGES; #刷新權(quán)限'
原因:
mysql8 之前的版本中加密規(guī)則是mysql_native_password,而在mysql8之后,加密規(guī)則是caching_sha2_password