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

# CREATE DATABASE

> CREATE DATABASE is used to create databases.

CREATE DATABASE is used to create databases.

**Tip**

This operation requires the CREATE DATABASE privilege on the target catalog. You can follow the instructions in [GRANT](/documents/4.2/sql-reference/sql-statements/account-management/GRANT.md) to grant this privilege.

## Syntax

```sql theme={null}
CREATE DATABASE [IF NOT EXISTS] <db_name>
[PROPERTIES ("key"="value", ...)]
```

## Parameters

`db_name`: the name of the database to create. For the naming conventions, see [System limits](/documents/4.2/sql-reference/System_limit.md).

**PROPERTIES (Optional)**

`storage_volume`: Specifies the name of the storage volume that is used to store the database in a shared-data cluster. If not provided, the default storage volume will be attached to the database. The property can be changed via `ALTER DATABASE` statement.

## Examples

1. Create the database `db_test`.

   ```sql theme={null}
   CREATE DATABASE db_test;
   ```

2. Create the cloud-native database `cloud_db` with the storage volume `s3_storage_volume`.

   ```sql theme={null}
   CREATE DATABASE cloud_db
   PROPERTIES ("storage_volume"="s3_storage_volume");
   ```

## References

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


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