The OceanBase client (OBClient) is compatible with both MySQL and Oracle tenants of Oceanbase Database. It is the recommended command-line client. You can contact the OceanBase technical team to obtain the client.
You can use the OBClient to connect to the OceanBase Database by running the following command:
obclient -u[Username]@[Tenant name]#[Cluster name] -P[Port No.] -h[IP address] -p[Password] -D[Database name] -c
Note
If the command does not have the
-coption, the hint does not take effect after you connect to the tenant.By default, if the command does not have the
-D[Database name]option, the username is used as the database name.