➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p123456
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (HY000): Access denied for user 'root', because password is error
➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p
Enter password:
ERROR 1045 (HY000): Access denied for user 'root', because password is error
➜ heidsoft-mycat mysql -h172.16.59.20 -P8066 -uroot -p --default_auth=mysql_native_password
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.6.29-mycat-1.6.7.6-release-20211221142218 MyCat Server (OpenCloudDB)

Copyright (c) 2000, 2020, 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> show databases;
+----------+
| DATABASE |
+----------+
| TESTDB |
+----------+
1 row in set (0.00 sec)

mysql>

posted on 2022-01-05 14:39  heidsoft  阅读(135)  评论(0编辑  收藏  举报