import sqlalchemy as sa
import pandas as pd
engine = sa.create_engine('clickhouse://random_name:@localhost:8123/default')
sql = "show databases"
df = pd.read_sql(sql, engine)
The user can be anything that has not been created in clickhouse. Any random names can connect to clickhouse as the default user.
I have created a readonly user, but it did not work
Hi, I connect clickhouse like this:
The user can be anything that has not been created in clickhouse. Any random names can connect to clickhouse as the default user.
I have created a readonly user, but it did not work