使用Navicat客戶(hù)端連接本地mysql,報(bào)錯(cuò):1251- Client does not support authentication protocol requested by server;consider upgrading Mysql client。
進(jìn)入MySQL的bin目錄,然后輸入mysql -u root -p,輸入密碼,登錄成功
輸入
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';