mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Grant select on system tables to test user
This commit is contained in:
parent
e140cad10c
commit
1713dbe631
@ -16,6 +16,7 @@ fi
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP USER IF EXISTS $USER"
|
||||
$CLICKHOUSE_CLIENT -q "CREATE USER $USER"
|
||||
$CLICKHOUSE_CLIENT -q "GRANT SELECT ON system.* TO $USER"
|
||||
$CLICKHOUSE_CLIENT -u "$USER" -q "SELECT * FROM system.numbers LIMIT 1"
|
||||
$CLICKHOUSE_CLIENT -u "$USER" -q "SELECT * FROM system.numbers LIMIT 1"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT user, toBool(ProfileEvents['SelectQuery'] > 0), toBool(ProfileEvents['Query'] > 0) FROM system.user_processes WHERE user='default'"
|
||||
|
Loading…
Reference in New Issue
Block a user