We recommend that you install the official Java Database Connectivity (JDBC) driver mysql-connector-Java V5.1.30 or V5.1.40 provided by MySQL. Compatibility issues may occur if you use other versions.
The following is an example statement for connecting to a MySQL tenant of the OceanBase database from a MySQL client:
mysql -u[Username]@[Tenant name]#[Cluster name] -P[Port No.] -h[IP address] -p[Password] -D[Database name]] -c
Note
If the connection statement does not contain the -c option, the hint does not take effect after you connect to the MySQL tenant.