mysql8.0.11客戶端無法登陸的解決方法
阿新 • • 發佈:2020-01-09
本文為大家分享了mysql8.0.11客戶端無法登陸的解決方法,供大家參考,具體內容如下
mysql8.0.11 預設加密方式【caching_sha2_password】,Navicat for MySQL和Navicat Premium 12客戶端不支援。
可以使用在資料庫伺服器上登入:
mysql>use mysql; mysql> select user,host,plugin,authentication_string from user where user='test'; +------+------+-----------------------+------------------------------------------------------------------------+ | user | host | plugin | authentication_string | +------+------+-----------------------+------------------------------------------------------------------------+ | test | % | caching_sha2_password | $A$005$7\m5O\%K/Y3'[email protected] | +------+------+-----------------------+------------------------------------------------------------------------+ 1 row in set (0.00 sec)
客戶端找不到 caching_sha2_password 外掛,可以建立新使用者使用native加密方式或者修改
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123456a?';
這時候改一下登入密碼就行。
精彩專題分享:mysql不同版本安裝教程 mysql5.7各版本安裝教程 mysql5.6各版本安裝教程
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支援我們。