webmin icon indicating copy to clipboard operation
webmin copied to clipboard

MYSQL_OPT_RECONNECT is deprecated

Open lionslair opened this issue 2 years ago • 12 comments

I have started receiving this error as of an hour ago. Every five minutes from the status monitor

Cron root@llserver /etc/webmin/status/monitor.pl

WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.

I assume it's generated from the MySQL status check.

Webmin version: 2.101 MariaDB version 10.8.8 Perl version v5.30.0

lionslair avatar Aug 15 '23 23:08 lionslair

maybe related

https://github.com/perl5-dbi/DBD-mysql/issues/354

https://forum.virtualmin.com/t/mysql-opt-reconnect-is-deprecated/122168/4

lionslair avatar Aug 15 '23 23:08 lionslair

Looks like this is due to either a change in the MySQL server or the client libraries, according to https://stackoverflow.com/questions/76875569/warning-mysql-opt-reconnect-is-deprecated-and-will-be-removed-in-a-future-versi

I think the fix has to come from the perl-DBD-mysql package, not Virtualmin.

jcameron avatar Aug 16 '23 02:08 jcameron

Yeah it looks that way. Only place I see it reported is webmin status monitor.

I deleted (because I can not disable) the mysql monitor and stopped getting the notification.

Does that mean it is not to do with database connection but how the Mysql host is being checked?

Is there a different way webmin can check the mysql host is up?

lionslair avatar Aug 16 '23 05:08 lionslair

You could use the Bootup Action monitor type to check if MySQL is running locally or not..

jcameron avatar Aug 16 '23 06:08 jcameron

Does that mean it is not to do with database connection but how the Mysql host is being checked?

Yeah … it's just a warning that one option used in the call to check if the SQL-server is running will be removed in the future.

perl5-dbi/DBD-mysql#354

This seem to be the package that needs to fix this as @jcameron pointed out …

PitWenkin avatar Aug 16 '23 06:08 PitWenkin

What does the monitor.pl actually do? Only sends email in case something (what exactly?) is down or does it also do other stuff?

I'm monitoring most services by other means anyway, and am now wondering if I could disbale it.

PitWenkin avatar Aug 16 '23 06:08 PitWenkin

I'm seeing the same messages only from the SQL backup function for the databases I run daily backups off of.

Arthmoor avatar Aug 17 '23 01:08 Arthmoor

What does the monitor.pl actually do? Only sends email in case something (what exactly?) is down or does it also do other stuff?

Yes, that's all it does (unless you also have it setup to run other commands if a service is down)

jcameron avatar Aug 17 '23 03:08 jcameron

I'm seeing the same messages only from the SQL backup function for the databases I run daily backups off of.

Same. Will be for the same reason is my guess.

lionslair avatar Aug 17 '23 06:08 lionslair

I'm seeing the same messages only from the SQL backup function for the databases I run daily backups off of.

Same. Will be for the same reason is my guess.

The backups done via virtualmin have no problems (additional output) … strange

PitWenkin avatar Aug 17 '23 06:08 PitWenkin

The backups do get made, yes, but the system emails a notice for each database that's being backed up, with 2 of the SQL messages as the message body for each one.

Arthmoor avatar Aug 17 '23 16:08 Arthmoor

There seems to be a fix for ubuntu https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/2031548

PitWenkin avatar Aug 17 '23 16:08 PitWenkin