本文為大家分享了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?';
這時候改一下登錄密碼就行。
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持VeVb武林網。
新聞熱點
疑難解答