Hallo Zusammen,
ich habe mein FHEM Backup erfolgreich zurückgespielt aber irgendwas passt mit DBLog / DBLogMaria und meinem Zugriff auf meine Datenbank auf meinem NAS nicht:
Ich habe die abhängigen Pakete installiert wie damals:
sudo apt-get update && apt-get install mysql-client libdbd-mysql libdbd-mysql-perl
sudo apt-get install libxml-parser-lite-perl
sudo apt-get install libxml-simple-perl
sudo apt-get install libsoap-lite-perl
Fehlermeldung:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 354) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Mem, Proxy, SQLite, Sponge.
at ./FHEM/93_DbLog.pm line 2975.
Habe ich was vergessen ?
Ah, das Paket mysql-client gibt es wohl nicht mehr und wurde durch mariadb-client-10.0 ersetzt.
Wie installiere ich dieses paket?
Einfach mit sudo apt-get install mariadb-client
installieren oder müssen dann noch andere Dinge geändert werden ?
Danke!
Es sollte alles installieren wenn du ausführst:
sudo apt-get install mariadb-server
das installiert:
libhtml-template-perl libjemalloc1 libreadline5 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common
mariadb-server-10.1 mariadb-server-core-10.1 rsync socat
Danke für die Antwort, leider hat sich dabei nichts geändert.
Was kann ich noch tun ?
perldoc DBD::mysql
liefert:
Zitat"You need to install the perl-doc package to usw this program"
perl -MDBD::mysql -le'print $DBD::mysql::VERSION'
liefert:
ZitatCan't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl).
BEGIN failed--compilation aborted.
Wenn du explizit nochmal
sudo apt-get install libdbd-mysql
ausführst ?
Das Ergebnis ist aber immer noch das selbe :(
mysqlReading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed:
libdbi1
The following NEW packages will be installed:
libdbd-mysql libdbi1
0 upgraded, 2 newly installed, 0 to remove and 120 not upgraded.
Need to get 175 kB of archives.
After this operation, 387 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian bullseye/main armhf libdbi1 armhf 0.9.0-6 [24.2 kB]
Get:2 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian bullseye/main armhf libdbd-mysql armhf 0.9.0-9 [150 kB]
Fetched 175 kB in 1s (316 kB/s)
Selecting previously unselected package libdbi1:armhf.
(Reading database ... 77463 files and directories currently installed.) Preparing to unpack .../libdbi1_0.9.0-6_armhf.deb ...
Unpacking libdbi1:armhf (0.9.0-6) ...
Selecting previously unselected package libdbd-mysql:armhf.
Preparing to unpack .../libdbd-mysql_0.9.0-9_armhf.deb ...
Unpacking libdbd-mysql:armhf (0.9.0-9) ...
Setting up libdbi1:armhf (0.9.0-6) ...
Setting up libdbd-mysql:armhf (0.9.0-9) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
Reboot mal ausgeführt ?
ja klar ;)
perldoc DBD::mysql
und perl -MDBD::mysql -le'print $DBD::mysql::VERSION'
liefern immer noch die selbe Ausgabe.. :-\
Gerade eben gegoogelt (https://metacpan.org/dist/DBD-mysql/view/lib/DBD/mysql/INSTALL.pod)
sudo apt-get install libdbd-mysql-perl
?
SUPER! Danke! das wars... keine Ahnung warum das jetzt auf einmal funktioniert, hatte die Befehle ja schon ganz Anfangs ausgeführt :o
Jetzt ist der STATUS Connected.
Zitatsudo apt-get install libdbd-mysql-perl Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed:
libdbd-mysql-perl
0 upgraded, 1 newly installed, 0 to remove and 120 not upgraded.
Need to get 114 kB of archives.
After this operation, 266 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libdbd-mysql-perl armhf 4.050-3+b1 [114 kB]
Fetched 114 kB in 0s (268 kB/s)
Selecting previously unselected package libdbd-mysql-perl:armhf.
(Reading database ... 77500 files and directories currently installed.) Preparing to unpack .../libdbd-mysql-perl_4.050-3+b1_armhf.deb ...
Unpacking libdbd-mysql-perl:armhf (4.050-3+b1) ...
Setting up libdbd-mysql-perl:armhf (4.050-3+b1) ...
Processing triggers for man-db (2.9.4-2) ...
Zitatperl -MDBD::mysql -le'print $DBD::mysql::VERSION'
4.050