方式一:
[root@observer1 ~]# obclient -h10.11.253.41 -P 2883 -utpcc@oracle#ob -p123456 -c -A
obclient: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (42000): Access denied for user ‘tpcc@oracle#ob’@‘10.11.253.41’ (using password: YES)
方式二:
[root@observer1 ~]# obclient -h10.11.253.41 -P 2883 -utpcc@oracle -p123456 -c -A
obclient: [Warning] Using a password on the command line interface can be insecure.
Welcome to OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 86139
Server version: OceanBase 2.2.77 (r20210730214129-47629d3e6381fcef56055087a2d5be4c9a5c6650b) (Built Jul 30 2021 22:14:31)
Copyright (c) 2000, 2020, OceanBase and/or its affiliates. All rights reserved.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
obclient>
obclient>
问题:
方式一为什么会失败?
方式二为什么会成功?连接obproxy不是必须要带集群名的嘛,但我没有带啊,它居然能成功。