This topic describes how to view databases in the MySQL mode of OceanBase Database by using an SQL statement.
Procedure
Log on to a MySQL tenant of the cluster.
Use the
SHOW DATABASESstatement to view the information about databases under the MySQL tenant.Here is an example:
obclient> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | oceanbase | | information_schema | | mysql | | test | +--------------------+ 3 rows in setwhere
information_schemaallows you to access the database metadata. This is a built-in database in MySQL.oceanbasestores the system tables of OceanBase Database.mysqlstores the database users, privilege settings, and keywords.testindicates a custom database created by the current user.