How to pass arbitrary mysql_options() to the connection #659
Replies: 1 comment
-
No way. Use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
I am trying to pass the
MYSQL_OPT_GET_SERVER_PUBLIC_KEY
option to the connection.MYSQL_OPT_GET_SERVER_PUBLIC_KEY
is one of the options described in mysql_options(). I am looking for a way to achieve this.Question
How are arbitrary _mysql_options() that are not described as parameters to the
MySQLdb.connect(...)
method?Docs
The docs state the following:
At the MySQL C API function mapping section (see here) it states:
I think that the docs are a bit unclear on whether it is possible to pass mysql_options() to the connection?
Any help would be appreciated greatly.
Beta Was this translation helpful? Give feedback.
All reactions