Setting the ClickHouse Username and Password
After a ClickHouse cluster is created, you can use the ClickHouse client to connect to the ClickHouse server. The default username is default.
This section describes how to set ClickHouse username and password after a ClickHouse cluster is successfully created.
default is the default internal user of ClickHouse. It is an ClickHouse administrator user available only in normal mode (kerberos authentication disabled).
Setting the ClickHouse Username and Password
- Log in to Manager and choose Cluster > Services > ClickHouse. Click the Configurations tab and then All Configurations.
- Search for the users.default.password parameter in the search box and change its password, as shown in Figure 1.
- Log in to the node where the client is installed and run the following command to switch to the client installation directory.
cdCluster client installation directory
- Run the following command to configure environment variables:
source bigdata_env
- Log in to ClickHouse using the new password.
clickhouse client --host IP address of the ClickHouse instance --user default --password xxx
To obtain the service IP address of the ClickHouse instance, choose Components > ClickHouse > Instances on the cluster details page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot