Skip to main content

Create a database in a ClickHouse® cluster

Last update:

When creating a ClickHouse® cluster, a default database is created automatically. You cannot create a new database with the same name.

  1. Connect to the cluster.

  2. Create a database using an SQL query:

    CREATE DATABASE <database_name>;

    Specify <database_name> as the database name.

To learn more about creating databases, see the CREATE DATABASE instruction in the ClickHouse® documentation.

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