I never have to worry about available software updates, I always am being informed when there are new ones and proceed always from Webmin.
This time, because I’m receiving “WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.” emails every 5 minutes, I found there’s the version 2.6, not available from Webmin Packages updates here.
Where are you seeing the error, I use the same OS and same Webmin and don’t see the error.
I presume its coming from the monitor.pl from a previous post.
Have you seen a bug report that 2.6 will fix?
I got the same update just now. I don’t know if the update will fix that. I receive an email every 5 minutes from a week ago or something with that body text.
Thank you
I have also been receiving the same repeated warning when using the CLI and from some built in scripts:
virtualmin list-users --domain
/etc/webmin/mysql/backup.pl
For example:
virtualmin list-users --domain xxxxxx.com
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
User Real name Mail FTP DBs Quota
-------------------- -------------------- ---- ---------- ---- ---------------
Webmin version 2.610
Virtualmin version 7.50.0 GPL
Operating system AlmaLinux 9.7
Usermin version 2.510
@Jamie, this error is coming from libmysqlclient the client C library driver, which internally sets MYSQL_OPT_RECONNECT. We should fix the code to use either DBD::mysql or DBD::MariaDB depending on which database server is being installed, right?
And, also, we shouldn’t try to install one of these from CPAN because they are available in the standard package manager.
After looking into it more, I see that the packaged version of DBD::mysql removed MYSQL_OPT_RECONNECT years ago. People having this issue probably installed DBD::mysql from CPAN and never updated it.
Yeah, version 4.053 is outdated. I’d recommend deleting these CPAN modules and using the dnf install perl-DBD-mysql command to get the latest version that won’t set the parameter causing an error.
The protocol is the same, but the MariaDB version of the driver is maintained by the MariaDB team and reportedly aims to match MariaDB features better.
I think we might want to prefer DBD::MariaDB instead of the opposite. Mariadb is the de facto standard implementation of MySQL these days. Might as well assume that’s what we have.