Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege

解决方式

Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege_第1张图片Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege_第2张图片

 systemctl restart clickhouse-server #重启
 systemctl start clickhouse-server # 启动
 systemctl status clickhouse-server #查看状态
#创建用户并授权

CREATE USER clickhouse_admin IDENTIFIED WITH plaintext_password BY 'clickhouse_password'




授与新用户拥有所有管理权限

grant all on *.*  to  clickhouse_admin with grant option;

Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege_第3张图片

使用clickhouse_admin 用户创建一个列管理用户;

CREATE USER column_user IDENTIFIED WITH plaintext_password BY 'column_user'

Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege_第4张图片

创建一个行管理用户;

create user row_user identified with plaintext_password by 'row_user';

Code: 497. DB::Exception: Received from localhost:9000. DB::Exception: default: Not enough privilege_第5张图片

 ClickHouse创建用户 - 墨天轮

 clickhouse 如何使用SQL 管理用户和角色_code: 497. db::exception: received from localhost:_行走在云端z的博客-CSDN博客

你可能感兴趣的:(服务器,linux,运维)