Skip to main content

Create a database in a ClickHouse® cluster

When creating a ClickHouse® cluster, a database named default is created automatically. It is not possible to 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.