-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sessions and default database support in MySQL wire protocol #5646
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! PS. Did you check (manually) that the user settings (e. g. max_memory_usage
specified in users.xml
) work?
No, the last thing to do from #5476 is implementing user settings. I was going to make them separately. |
If I remember correctly, |
Also replacing strings by PODArray, which uses MemoryTracker. |
I have installed clickhouse 19.10.1.688 version. As per project requirement, I have to connect to clickhouse database from MYSQL client, so I tried below command
and
and also tried to connect from node application but it gets hang and after some time receive below error
Could you please tell how to connect. Thanks, |
Probably you are trying to connect to a native protocol server, which listens 9000 port by default. To be able to connect using mysql, you should add <mysql_port>9004</mysql_port> to config.xml. |
Thanks. |
I am able to connect ClickHouse from mysql client but when I tried to connect from node application using MYSQL module it throws an error
Thanks |
MYSQL library does not support authentication plugins other than mysql_native_password, which makes it impossible to use it with ClickHouse now. We will add tests for this client when either this or this is merged. |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Category (leave one):
Short description (up to few sentences):
Creating a new session in each MySQL connection. Using default database from config.xml, if it is not specified by client. #5476