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

# SHOW CREATE DATABASE

> Shows the SQL command used to create a database.

Shows the SQL command used to create a database.

## Syntax

```sql theme={null}
SHOW CREATE DATABASE <db_name>
```

## Parameters

`db_name`: the database name, required.

## Returns

* `Database`: the database name

* `Create Database`: the SQL command used to create the database

## Examples

```sql theme={null}
mysql > show create database zj_test;
+----------+---------------------------+
| Database | Create Database           |
+----------+---------------------------+
| zj_test  | CREATE DATABASE `zj_test` |
+----------+---------------------------+
```

## References

* [CREATE DATABASE](/documents/4.2/sql-reference/sql-statements/Database/CREATE_DATABASE.md)
* [SHOW DATABASES](/documents/4.2/sql-reference/sql-statements/Database/SHOW_DATABASES.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.