Removing the default user
This guide is not applicable to ClickHouse Cloud.
default user from ClickHouse Server.
We can do this by creating a YAML file (let’s call it remove_default_user.yaml) that has the following content
Running the executable directly
If we’re running the ClickHouse directly (clickhouse server), we need to put the file under the config.d directory.
When we run ClickHouse Server:
clickhouse client:
Docker or installed
If we’re running ClickHouse via Docker or have it installed on our machine, we need to put the file under the/etc/clickhouse-server/users.d directory instead.
So if we’re running with Docker, we can mount the config.d directory that we created earlier to /etc/clickhouse-server/users.d: