This topic describes the statements and methods for viewing databases in MySQL-compatible mode.
Procedure
Log in to a MySQL-compatible tenant of the cluster.
Use the
SHOW DATABASESstatement to view the information about databases under the MySQL-compatible tenant.Example:
obclient> SHOW DATABASES;The result is as follows:
+--------------------+ | Database | +--------------------+ | oceanbase | | information_schema | | mysql | | test | +--------------------+ 3 rows in setinformation_schemais a built-in database in MySQL that provides access to database metadata.oceanbasestores the system tables of OceanBase Database.mysqlstores database users, privilege settings, and keywords.testis a custom database created by the user.