> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW DATABASES

> SHOW DATABASES lists databases in your current cluster or an external data source.

SHOW DATABASES lists databases in your current cluster or an external data source. The database supports viewing databases of an external data source from v2.3 onwards.

## Syntax

```SQL theme={null}
SHOW DATABASES [FROM <catalog_name>]
```

## Parameters

| **Parameter** | **Required** | **Description** |
| - | - | - |
| catalog\_name | No | The name of the internal catalog or an external catalog.<ul><li>If you do not specify the parameter or specify the name of the internal catalog, which is `default_catalog`, you can view databases in your current cluster.</li><li>If you set the value of the parameter to the name of an external catalog, you can view databases in the corresponding external data source. You can run [SHOW CATALOGS](/documents/4.2/sql-reference/sql-statements/Catalog/SHOW_CATALOGS.md) to view internal and external catalogs.</li></ul> |

## Examples

Example 1: View databases in your current cluster.

```SQL theme={null}
SHOW DATABASES;
```

Or

```SQL theme={null}
SHOW DATABASES FROM default_catalog;
```

The output of the preceding statements is as follows.

```SQL theme={null}
+----------+
| Database |
+----------+
| db1      |
| db2      |
| db3      |
+----------+
```

Example 2: View databases in a Hive cluster by using the `Hive1` external catalog.

```SQL theme={null}
SHOW DATABASES FROM hive1;

+-----------+
| Database  |
+-----------+
| hive_db1  |
| hive_db2  |
| hive_db3  |
+-----------+
```

## References

* [CREATE DATABASE](/documents/4.2/sql-reference/sql-statements/Database/CREATE_DATABASE.md)
* [SHOW CREATE DATABASE](/documents/4.2/sql-reference/sql-statements/Database/SHOW_CREATE_DATABASE.md)
* [USE](/documents/4.2/sql-reference/sql-statements/Database/USE.md)
* [DESC](/documents/4.2/sql-reference/sql-statements/table_bucket_part_index/DESCRIBE.md)
* [DROP DATABASE](/documents/4.2/sql-reference/sql-statements/Database/DROP_DATABASE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.