After you create a user, you can obtain the required information in the ApsaraDB for OceanBase console to connect to the database.
Set a whitelist.
The whitelist includes the public or private IP addresses that can be used to access this database. On the Connection tab, click Settings.
Obtain the IP address and port number.
On the Connection tab, click Apply to obtain a public IP address.
Obtain the private IP address that is displayed on the Connection tab.
Obtain the account information.
On the Accounts tab, obtain the account information.
ApsaraDB for OceanBase uses a protocol that is compatible with MySQL. You can connect to ApsaraDB for OceanBase by using the same method.
mysql -u <username> -p -h <IP address> -P <port number>
mysql -u root -p -h 188.8.131.52 -P 3306