default_catalog. Currently, you cannot modify the name of the internal catalog or create a new internal catalog.
Query internal data
-
Connect your cluster.
- If you use the MySQL client to connect the cluster, you go to
default_catalogby default after connecting. - If you use JDBC to connect the cluster, you can go directly to the destination database in the default catalog by specifying
default_catalog.db_namewhen connecting.
- If you use the MySQL client to connect the cluster, you go to
-
(Optional) Use SHOW DATABASES to view databases:
Or
-
(Optional) Use SET CATALOG to switch to the destination catalog in the current session:
Then, use USE to specify the active database in the current session:Or, you can use USE to directly go to the active database in the destination catalog:
-
Use SELECT to query internal data:
If you do not specify the active database in the preceding steps, you can directly specify it in a select query:Or
Examples
To query data inolap_db.olap_table, you can perform one of the following operations: