Hallo zusammen,
nachdem auf meinem Debian-System der libmysqlclient geupdatet wurde, bekomme ich im Log von FHEM folgende Warnings:
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
Ist es richtig, dass ich als User kein Attribut setzen bzw. nichts in der db.conf einstellen kann, um das Problem zu lösen?
Bei der Google-Recherche kommt man recht schnell auf folgenden Beitrag:
https://stackoverflow.com/questions/76875569/warning-mysql-opt-reconnect-is-deprecated-and-will-be-removed-in-a-future-versi
Hallo Ralli,
Zitatst es richtig, dass ich als User kein Attribut setzen bzw. nichts in der db.conf einstellen kann, um das Problem zu lösen?
Ja, ist richtig. Auch ich kann das nicht.
Wenn du dir diesen Artikel durchliest, stößt du auf folgende Aussagen:
DBD::mysql always sets MYSQL_OPT_RECONNECT to false, there's nothing your code can do to change that. Setting it to any value, including false, emits the error.
...
The problem seems to be at the libmysqlclient21 library that has been recently updated. Either this library should not emit a warning when the MYSQL_OPT_RECONNECT option is set to false, or BDB::mysql should not set the option at all instead of setting it to false
...
It looks like there is now an update to the libdbd-mysql-perl on ubuntu, and it seems to have fixed the issue!
Der Beitrag ist auch erst 8 Tage alt.
LG
Hallo,
vielen Dank. Ich muss mich insofern korrigieren, mein FHEM sitzt nicht in einem Debian- sondern tatsächlich in einem Ubuntu-System - bei mehreren Containern kann man schon mal durcheinander kommen 8) .
Bei mir war bereits die zurzeit aktuelle Version libmysqlclient21:amd64 (8.0.33-0ubuntu0.22.04.4, 8.0.34-0ubuntu0.22.04.1) installiert, allerdings hatte ich keinen Reboot vorgenommen.
Ein erneutes apt update && apt dist-upgrade -y hat mir nochmal folgendes Paket aktualisiert:
libdbd-mysql-perl:amd64 (4.050-5, 4.050-5ubuntu0.22.04.1)
Danach zur Sicherheit einen Reboot durchgeführt - Fehler scheint weg zu sein.
Wenn Du von Containern sprichst .. warum rebootest Du dann das System?
Den Host habe ich nicht rebootet, nur den Container.
Inzwischen gibt es ein Update der Bibliothek für Ubuntu,die den "Fehler" beseitigt.
VG
Torsten