【問題解決】鏈接mysql 8錯誤:authentication plugin 'caching_sha2_password

在剛安裝好mysql8,使用native鏈接的時候報錯mysql

authentication plugin 'caching_sha2_password'...

首先確保服務已開啓,而後經過cmd命令進入mysql的localhost數據庫sql

mysql -hlocalhost -uroot -p123456

而後進入mysql數據庫數據庫

use mysql;

修改密碼spa

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
FLUSH PRIVILEGES;

從新鏈接數據庫 code

OK  解決blog

相關文章
相關標籤/搜索