mysql8.4版本mysql_native_password無法連接問題解決
用dbeaver可以直接連接
用NAVICAT連接后報錯
- 在網上查找8.0版本可以在my.ini里[mysqld]配置以下描述
default_authentication_plugin=mysql_native_password - 仍然報錯,翻文檔發(fā)現(xiàn)In MySQL 8.4, the mysql_native_password server-side plugin is disabled by default.,也就是不允許這么配置了
解決方案
但文檔給出了另一種方案,在mysqld設置mysql_native_password=ON,實測可用
改完my.ini后用管理員身份打開命令提示符重啟mysl即可
net stop mysql net start mysql mysql -uroot -p -- 輸入密碼 alter user 'root'@'localhost' identified with mysql_native_password; alter user 'root'@'localhost' identified by '123456';
如果不設置,則在修改賬號驗證方式時會報錯ERROR 1524 (HY000): Plugin ‘mysql_native_password’ is not loaded
到此這篇關于mysql8.4版本mysql_native_password無法連接問題解決的文章就介紹到這了,更多相關mysql_native_password無法連接內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
Windows Server 2003下修改MySQL 5.5數(shù)據(jù)庫data目錄
這篇文章主要介紹了Windows Server 2003下修改MySQL 5.5數(shù)據(jù)庫data目錄,需要的朋友可以參考下2016-04-04mysql 導入導出數(shù)據(jù)庫以及函數(shù)、存儲過程的介紹
本篇文章是對mysql中的導入導出數(shù)據(jù)庫命令以及函數(shù)、存儲過程進行了詳細的分析介紹,需要的朋友參考下2013-07-07