mysql8.0.11客戶端沒法登錄



mysql8.0.11 默認加密方式【caching_sha2_password】,Navicat for MySQL和Navicat Premium 12客戶端不支持。 mysql

可使用在數據庫服務器上登陸: 
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)

客戶端找不到 caching_sha2_password 插件,能夠建立新用戶使用native加密方式或者修改

ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123456a?'; sql

這時候改一下登陸密碼就行數據庫