ClickHouse
Connecting DinMo to ClickHouse: Step-by-Step Guide
-- Create the technical database that DinMo will use to store its internal data
CREATE DATABASE IF NOT EXISTS dinmo_technical_data;
-- Give the DinMo user the ability to sign in with a password
CREATE USER IF NOT EXISTS DINMO_USER IDENTIFIED WITH bcrypt_password BY '<strong, unique password>';
CREATE ROLE IF NOT EXISTS DINMO_ROLE;
GRANT DINMO_ROLE TO DINMO_USER;
-- Let the DinMo Role read and query the database that contains the data that you want to use in the DinMo Platform
-- You can have fine-grained access control by granting permissions only on specific tables or views instead of the whole database
-- Replace <your database> with the name of the database where you store the tables and views that will be used in the DinMo Platform
GRANT SELECT ON <your database>.* TO DINMO_ROLE;
-- Grant the DinMo Role full access to the technical database
GRANT SELECT ON dinmo_technical_data.* TO DINMO_ROLE;
GRANT CREATE, DROP TABLE ON dinmo_technical_data.* TO DINMO_ROLE;
GRANT CREATE, DROP VIEW ON dinmo_technical_data.* TO DINMO_ROLE;
GRANT INSERT ON dinmo_technical_data.* TO DINMO_ROLE;Last updated

