<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 16, 2023 at 4:55 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 16 Aug 2023 09:37:37 +0100, you wrote:<br>
<br>
>On 16/08/2023 07:52, Stephen Worthington wrote:<br>
>> If you use mythtv-status, optimize_mythdb, mythexport or anything else<br>
>> that is written in Perl and uses the database, then you may be getting<br>
>> this warning message now:<br>
>> <br>
>> WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a<br>
>> future version.<br>
>> <br>
>> It will happen every time the Perl DBD::mysql call is used, as the<br>
>> Perl implementation of that call sets the MYSQL_OPT_RECONNECT option<br>
>> to false, and any setting of the MYSQL_OPT_RECONNECT option triggers<br>
>> the deprecation warning.  The real problem is if you have<br>
>> mythtv-status installed - it gets run regularly to update the motd<br>
>> message, and each time it now gets this deprecation warning, it emails<br>
>> you on your root@<hostname> email address.  So you get hundreds of<br>
>> these unwanted emails.  If you do not have your root email address<br>
>> enabled, you will not have this problem, but sensible people do have<br>
>> their root email working so they can receive the reports from<br>
>> optimize_mythdb each day to see if they have database problems.<br>
>> <br>
>> The warning is caused by the installation of the latest<br>
>> libmysqlclient21 version.  On Ubuntu 22.04, the version that causes<br>
>> this is package version 8.0.34:<br>
>> <br>
>> root@mypvr:~# apt list -a libmysqlclient21<br>
>> Listing... Done<br>
>> libmysqlclient21/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1<br>
>> amd64 [upgradable from: 8.0.28-0ubuntu4]<br>
>> libmysqlclient21/jammy,now 8.0.28-0ubuntu4 amd64 [installed,upgradable<br>
>> to: 8.0.34-0ubuntu0.22.04.1]<br>
>> <br>
>> libmysqlclient21/jammy-updates,jammy-security 8.0.34-0ubuntu0.22.04.1<br>
>> i386<br>
>> libmysqlclient21/jammy 8.0.28-0ubuntu4 i386<br>
>> <br>
>> If you have already been updated to this version, the workaround is to<br>
>> downgrade to the latest previous version that is still available,<br>
>> which is 8.0.28 in the Ubuntu 22.04 packages.<br>
>> <br>
>> sudo apt install libmysqlclient21=8.0.28-0ubuntu4<br>
>> <br>
>> Then you need to mark that version to be held instead of being<br>
>> updated:<br>
>> <br>
>> sudo apt-mark hold libmysqlclient21<br>
>> <br>
>> If you have not yet been updated to the 8.0.34 version, you can just<br>
>> do the hold command before that happens and you should be left on the<br>
>> prior 8.0.33 version.  The timing of the update to 8.0.34 varies due<br>
>> to the new apt system where packages get rolled out to only a few<br>
>> systems first, to see if they cause problems.  So you may be lucky and<br>
>> not have 8.0.34 yet.  Two of my Ubuntu 22.04 systems had not been<br>
>> updated, but my main MythTV box had, and had 60+ unwanted emails<br>
>> waiting.<br>
>> <br>
>> Reverting to a slightly older libmysqlclient21 version should not<br>
>> cause any problems for now, but as other things get updated it may<br>
>> cause problems later.  Hopefully the Perl maintainers will fix the<br>
>> DBD:mysql code before then, or some other fix will happen.<br>
>> <br>
>> See:<br>
>> <br>
>> <a href="https://stackoverflow.com/questions/76875569/warning-mysql-opt-reconnect-is-deprecated-and-will-be-removed-in-a-future-versi" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/76875569/warning-mysql-opt-reconnect-is-deprecated-and-will-be-removed-in-a-future-versi</a><br>
>> <a href="https://github.com/perl5-dbi/DBD-mysql/issues/354" rel="noreferrer" target="_blank">https://github.com/perl5-dbi/DBD-mysql/issues/354</a><br>
><br>
>To be clear, is this a mysql problem, a mariadb problem, a library common to both or something <br>
>closer to mythtv?<br>
><br>
>Basically: I'm using mariadb, will this affect me?<br>
<br>
It affect everyone who uses libmysqlclient21, which is the connector<br>
used by clients to talk to both MySQL and Mariadb.  There is a<br>
libmariadb3 connector library also, but most software just uses<br>
libmysqlclient21 as it works with both MySQL and Mariadb.  So yes, you<br>
will be affected.<br><br></blockquote><div><br></div><div>I was not getting any mail at root, but I have a systemd service that optimizes and backups the database daily. It's probably a script stolen from you along the way.  I did see the warning in the systemctl status output, but not in the email I get sent as a part of my service which goes to my normal gmail account.  So you may have to look around for the warning.</div><div><br></div><div>The workaround has been applied without issue so far.</div><div><br></div><div>Thanks, as always Stephen.</div><div><br></div><div>Jim A</div><div> </div></div></div>