-
Notifications
You must be signed in to change notification settings - Fork 609
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
feat: Using kwargs in ibis.mysql.connect #10702
Comments
This doesn't work out of the box because we're using MySQLdb, which has proven to be much more reliable, measured by how little we have to babysit the MySQL CI now versus when we used It looks like I'll explore whether we can switch to |
What is the error you get when try to use We're passing through the Moving to |
I'm able to run the following (z)shell commands:
followed by this Ibis code in IPython:
without any issue. |
Thanks
If I'm not using it, I'm getting: "incorrect password" or user "not authenticated". Looks like by current Starrocks setup is expecting to get password in encrypted or hashed way. I tested on I will try with PyMySQL connection to our instance with or without plugin and let you know. About Here is comment in PyMySQL:
Is this possible to provide a auth_plugin IN ibis.mysql.connect: ? In the doc: https://ibis-project.org/backends/mysql Does it mean that it's possible ? Maybe I just don't know how to pass it properly. |
You should be able to directly pass con = ibis.mysql.connect(..., auth_plugin="mysql_clear_password") |
Is your feature request related to a problem?
When I'm trying to connect to Starrocks via MYSQL client in Python and can not can not use
**kwargs
inibis.mysql.connect
kwargs
I need for auth pluginsDetails of the setup
I'm trying to use IBIS for working with Starrocks via MYSQL client.
Starrocks supports mysql driver I'm expecting to so it should work fine in Ibis. At least sqlalchemy and
mysql-connector-python
works fine with StarrocksIn documentation https://ibis-project.org/backends/mysql I found this
pip install 'ibis-framework[mysql]'
( I use
python 3.12
, no any other libs installed )It did not work for me because I need to use auth plugins:
auth_plugin="mysql_clear_password"
Interesting that's mentioned that
connect
is a wrapper ondo_connect
ibis.mysql.connect
is a thin wrapper arounddo_connect
that supports itibis.backends.mysql.Backend.do_connect.
What is the motivation behind your request?
Need to use any auth plugin when connection to MYSQL or MYSQL compatible DB
Describe the solution you'd like
Add support of
**kwargs
fromdo_connect
or makedo_connect
available in ibis.mysqlExpecting that this works:
Possible workaround
I have used mysql-connector-python library for creating connection
What version of ibis are you running?
9.5
What backend(s) are you using, if any?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: