Create a database in a ClickHouse cluster
When you create a ClickHouse cluster, a default database is created automatically. You cannot create a new database with the same name.
You can create new databases using SQL queries.
-
Create a database:
CREATE DATABASE <database_name>;Specify
<database_name>— the database name.
Learn more about creating databases in the CREATE DATABASE section of the ClickHouse documentation.