本文為大家分享了mysql8.0.11客戶(hù)端無(wú)法登陸的解決方法,供大家參考,具體內(nèi)容如下
mysql8.0.11 默認(rèn)加密方式【caching_sha2_password】,Navicat for MySQL和Navicat Premium 12客戶(hù)端不支持。
可以使用在數(shù)據(jù)庫(kù)服務(wù)器上登錄:
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'I@j8.ifRKoGiqJD58kgBP8iZj0q9d8yaAr2zWYa4j4r3to0 |+------+------+-----------------------+------------------------------------------------------------------------+1 row in set (0.00 sec)
客戶(hù)端找不到 caching_sha2_password 插件,可以創(chuàng)建新用戶(hù)使用native加密方式或者修改
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123456a?';
這時(shí)候改一下登錄密碼就行。
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持VeVb武林網(wǎng)。
新聞熱點(diǎn)
疑難解答
圖片精選