---
title: "Create a database in a ClickHouse® cluster"
sidebar_label: "Create a database"
description: "How to create a database in a ClickHouse® cluster"
sidebar_position: 6
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import {TabItemLabel} from '@selectel/docux/components';
import CopyIcon from '@selectel/docux/icons/copy';
import Formbricks from '@theme/MDXComponents/Formbricks';

# Create a database in a ClickHouse® cluster

When [creating a ClickHouse® cluster](/managed-databases/clickhouse/create-cluster.mdx), the `default` database is automatically created. You cannot create a new database with the same name.

1. [Connect to the cluster](/managed-databases/clickhouse/connect-to-cluster.mdx).

2. Create a database using an SQL query:

   ```sql
   CREATE DATABASE <database_name>;
   ```

   Specify `<database_name>` as the database name.

To learn more about creating databases, see the [CREATE DATABASE](https://clickhouse.com/docs/ru/sql-reference/statements/create/database) instruction in the ClickHouse® documentation.

ClickHouse® is a registered trademark of ClickHouse, Inc. https://clickhouse.com.

<Formbricks />
