MYSQL_OPT_RECONNECT is deprecated in MySQL 8.0.34.#45
MYSQL_OPT_RECONNECT is deprecated in MySQL 8.0.34.#45jk2 wants to merge 1 commit intoapache:trunkfrom
Conversation
|
It looks like it's been since Is the responsibility for these forthcoming new errors going to be on APR or on APR's users? Do those changes need to happen ASAP with this flag being removed? Thanks |
|
Reconnect is MySQL specific option not affecting functionality of any other code in APR whether enabled or disabled. Apache dbd and authn_dbd modules that use APR correctly identified lost connection with this patch and showed/logged error. The connection was restored on next request when MySQL was available again. As other database drivers in APR (e.g. oracle/postgresql) do not support reconnect, there should not be programs using APR relying on option available only on one database driver. |
|
Awesome, thanks! |
The MySQL client library currently supports performing an automatic reconnection to the server if it finds that the connection is down and an application attempts to send a statement to the server to be executed. Now, this feature is deprecated and subject to removal in a future release of MySQL.
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)
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
Similar to issue in DBD-mysql: perl5-dbi/DBD-mysql#354