-
Notifications
You must be signed in to change notification settings - Fork 550
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 8.0.34 and 8.1.0 deprecates MYSQL_OPT_RECONNECT
#1322
Comments
It's pretty exciting to see the news on MySQL 8.x Innovation releases breathing some life into it. If a user wants to put in a deprecated option they may do so. I wouldn't remove the flag bindings yet, but would certainly want to gracefully handle the missing definition in future versions of the mysql2 gem. |
Just wanted to add to this: passing in I guess ideally it should not even set this if |
Same warning here with MySQL 8.1 and mysql2 0.5.5. |
Does anyone know why MYSQL_OPT_RECONNECT is being deprecated? I tried looking for the related work log item, 15766, but couldn't find it here. |
Any updates on this? will this not break |
It will break when removed, yes. Need to get in a conditional definition with an in-Ruby warning that says the feature was removed. |
@sodabrew |
It would be nice to get rid of this MYSQL_OPT_RECONNECT warning message. |
@joshuapinter Trilogy doesn't have basic caching_sha2_password support which is required in newer MySQL 8.x so that's out. |
The support for that has been added recently - see https://github.com/trilogy-libraries/trilogy/releases/tag/v2.8.0, @breisig. I haven't yet used Trilogy myself, but github.com stands behind it, so it looks solid. |
@joshuapinter Curious what tweaks you had to make? |
@tmcabee Honestly, almost nothing in our main Rails app. Mostly around manual connections using the Trilogy adapter for imports and conversions. If you're not using stuff like |
MySQL 8.0.34 and 8.1.0 deprecates
MYSQL_OPT_RECONNECT
Since MySQL 8.0.34 and 8.1.0 deprecates
MYSQL_OPT_RECONNECT
, mysql2 gem is also affected.https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-34.html#mysqld-8-0-34-deprecation-removal
https://dev.mysql.com/doc/relnotes/mysql/8.1/en/news-8-1-0.html#mysqld-8-1-0-deprecation-removal
The related MYSQL_OPT_RECONNECT option is still available but it is also deprecated. C API functions mysql_get_option() and mysql_options() now write a deprecation warning to the standard error output when an application specifies MYSQL_OPT_RECONNECT. (WL #15766)
Here are two specs that raise
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
The text was updated successfully, but these errors were encountered: