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'I@j8.ifRKoGiqJD58kgBP8iZj0q9d8yaAr2zWYa4j4r3to0 |
+------+------+-----------------------+------------------------------------------------------------------------+
1 row in set (0.00 sec)
客户端找不到 caching_sha2_password 插件,可以创建新用户使用native加密方式或者修改
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123456a?';
这时候改一下登录密码就行