clickhouse21.7.11.3 users.xml 配置文件

说明

ClickHouse的用户及访问权限控制在 /etc/clickhouse-server/user.xml 文件配置

与 config.xml 关系

该文件名在 /etc/clickhouse-server/config.xml 中设置

<users_xml>
    <!-- Path to configuration file with predefined users. -->
    <path>users.xml</path>
</users_xml>

users.xml组成

主要由三部分组成:

  • profile:类似于用户角色,可以实现最大内存、负载方式等配置
  • users:设置包括用户名、密码、权限等
  • quotas:限制资源使用等

修改密码

打开文件:

vim /etc/clickhouse-server/user.xml

跳到64行:

:64

在下面配置密码:

<password></password>

原文出处:/show_1IX3OmGgm3Fe.html