-
Notifications
You must be signed in to change notification settings - Fork 542
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
Mysql 5.7 support #548
Comments
Are there any known problems? I'll try to setup CI for MySQL 5.7 |
Not a lot of details yet but I've come across this issue as I've been unable to get MySQL 5.7 and mysql2 working together. The error?
|
It's possible that CLIENT_SECURE_CONNECTION was removed from MySQL 5.7. Idea #1: If SECURE_CONNECTION is not defined in the mysql header file, define it as 0 in mysql2 in client.c here: Pros:
Cons:
Idea #2: Add some logic to check if this variable is defined before setting it in the connection flags in client.rb here: Pros:
Cons:
|
Awesome! Yes please for a PR for this. |
@sodabrew simple change to 0 is not working. |
I don't want to add any more confusion but I should note that SECURE_CONNECTION is 32768 on my 5.6 install even though I'm not actually using a secure connection, so the flag may not behave as simply as it seems. |
Closing this issue. Please see PR #553 "Completion of MySQL 5.7 support". |
thanks for clarification @sodabrew! didn't realize I was on brew edge but not the gem edge for this one :( |
@tomfuertes mysql2 gem 0.3.17 and 0.2.24 and above support MySQL 5.7. There's no reason to direct people to downgrade their MySQL installation. |
MySQL 5.7.9 update the libmysqlclient from libmysqlclient.18.dylib to libmysqlclient.20.dylib |
@xwaynec If the library version changed, then you simply need to rebuild your mysql2 gem. |
5.7 has some nice improvements, it would be great to see support in mysql2.
The text was updated successfully, but these errors were encountered: