........
ocp_meta_tenant:
tenant_name: ocp_meta
max_cpu: 2.0
memory_size: 4G
ocp_meta_username: root # User to use under ocp meta tenant
ocp_meta_password: ocp_meta # Password used to connect to ocp meta tenant
ocp_meta_db: meta_database # Database used to store ocp meta data
# OCP monitor tenant definition, including tenant name, cpu and memory
ocp_monitor_tenant:
tenant_name: ocp_monitor
max_cpu: 2.0
memory_size: 4G
ocp_monitor_username: root # User to use under ocp monitor tenant
ocp_monitor_password: ocp_monitor # Password used to connect to ocp meta tenant
ocp_monitor_db: monitor_database # Database used to store ocp meta data
obproxy-ce:
# Set dependent components for the component.
# When the associated configurations are not done, OBD will automatically get the these configurations from the dependent components.
depends:
- oceanbase-ce
servers:
- 10.xx.xx.155
........
10.xx.xx.155 是observer主机也是obproxy实例
但是用root@ocp_meta用户登录obproxy报错:
admin@ubuntu:~$ mysql -uroot@ocp_meta -h10.xx.xx.155 -P2883 -pocp_meta
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (42000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)
admin@ubuntu:~$
admin@ubuntu:~$
用root@ocp_meta用户登录observer报错:
admin@ubuntu:~$
admin@ubuntu:~$ mysql -uroot@ocp_meta -h10.xx.xx.155 -P2881 -pocp_meta
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (42000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)
admin@ubuntu:~$
admin@ubuntu:~$
root@sys用户登录obproxy就正常,如下:
mysql> quit
Bye
admin@ubuntu:~$ mysql -uroot@sys -h10.xx.xx.155 -P2883 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1181483490
Server version: 5.6.25 OceanBase_CE 4.3.0.1 (r100000242024032211-0193a343bc60b4699ec47792c3fc4ce166a182f9) (Built Mar 22 2024 13:07:59)
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
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>