databendlabs / bendsql

Databend Native Client
Apache License 2.0
49 stars 26 forks source link

Cannot seem to use a user other than `root` #439

Closed rad-pat closed 5 months ago

rad-pat commented 5 months ago

If I use bendsql and log in as root, create a user, grant privileges. I cannot then use those credentials to open another bendsql session:

RequestError: Start Query failed with status 401 Unauthorized: {"error":{"code":"401","message":"User 'user1'@'%' does not exist."}}

bendsql -P8100 -uroot

CREATE USER 'user1' identified by 'test123';
GRANT ALL on *.* to 'user1';

bendsql -P8100 -uuser1 -ptest123

error

rad-pat commented 5 months ago

Seems more of a databend issue directly, closing