-
Notifications
You must be signed in to change notification settings - Fork 32
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
support for mysql_options() #199
Comments
A quick look at the DBIish MySQL driver doesn't show anything SSL related so I presume it's something between libmysql and the backend. It seems there are a number of possible reasons you can get this error. Client/server library version: A cipher suite mismatch: Suggests to check that your cert is valid: Can you connect via the mysql client successfully using the same parameters as you provide to DBIish.connect? |
|
Ah. I see. There are even commented out regression tests from the perl driver which haven't been ported for these (mysql_init_command specifically). mysql.connect() should take an *%params arg similar to Pg and SQLite which allows setting additional details, and pass those to mysql_options() prior to connecting. Thanks for digging that up. |
Right, just so we're clear as I have a tendency of not being clear .... (lol). Plain text mysql connections: a) Using the mysql client work fine The difference I believe is: a) When compiled with SSL, the libmysqlclient uses ssl as the default (assumption) It's be nice to have raku: a) Set SSL to none as the default and Cheers! |
I prefer security by default but it should be documented to make it clear and tell the user what needs to be done to use it in a secure way. |
It would be nice to be able to turn off this default behavior of wanting to use ssl on a connection that doesn't require it.
DBDish::mysql: Can't connect: SSL connection error: error:00000001:lib(0):func(0):reason(1)
% uname -a
FreeBSD workvm.myhome 12.1-STABLE FreeBSD 12.1-STABLE r363997 GENERIC amd64
The text was updated successfully, but these errors were encountered: