将mycat部署完成之后,处于正常运行的状态下,使用mysql8.0.11客户端版本登陆mycat,经过多次登陆访问,都是无法访问,提示密码错误(Access denied for user 'user', because password is error)。
mysql -uuser -puser -h127.0.0.1 -P3306
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (HY000): Access denied for user 'user', because password is error
mysql --version
mysql Ver 8.0.11 for linux-glibc2.12 on x86_64 (MySQL Community Server - GPL)
后将mysql更换为5.7.20,能够正常访问mycat1.6.5版本
mysql -uuser -puser -h127.0.0.1 -P3306
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1015
Server version: 5.6.29-mycat-1.6.5-release-20180122220033 MyCat Server (OpenCloundDB)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
mysql --version
mysql Ver 14.14 Distrib 5.7.20, for linux-glibc2.12 (x86_64) using EditLine wrapper
初步验证是由于MYSQL在8.0.4的版本中,将数据库用户的默认认证机制变更为“caching_sha2_password”