關於mysql8.0及以上版本連接navicat時候報錯(密碼加密方式需要修改)


首先這個原因是因為MySQL版本的密碼加密方式變了,要把它修改成以前的方式(因為,navicat不支持這種方式)

 

 

1:先進入mysql:

mysql -uroot -p123456;

2:查詢密碼加密方式:

select host,user,plugin,authentication_string from mysql.user;

3:修改

alter user 'root'@'%' identified by '12345' password expire never;
alter user 'root'@'%' identified with mysql_native_password by'12345';

 

alter user root@localhost identified by '12345' password expire never;
alter user root@localhost identified with mysql_native_password by '12345';

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM