Thread DBD::mysql::st execute failed (FHEM Server) (2 answers)
Opened by comp2000 at 2013-08-28 19:14

comp2000
 2013-08-28 19:14
#169793 #169793
User since
2013-01-20
15 Artikel
BenutzerIn
[default_avatar]
Hallo und guten Abend
Ich versuche meinen Fhemserver (Perl) mit Mysql zu verbinden.
Das verbinden und ein loggen funktioniert aber dann sehe ich im log folgende Fehlermeldung:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 2013.08.28 11:56:01 3: Connecting to database mysql:fhem;localhost;port=3306 with user fhemuser
2013.08.28 11:56:01 3: Connection to db mysql:fhem;localhost;port=3306 established
2013.08.28 11:56:01 3: Connection to db mysql:fhem;localhost;port=3306 established
2013.08.28 11:56:02 3: Opening CUL_433 device /dev/ttyACM0
2013.08.28 11:56:02 3: CUL_433 device opened
2013.08.28 11:56:02 3: CUL_433: Possible commands: BCFiAGMRTVWXefmltux
2013.08.28 11:56:02 3: Opening CUL_868 device /dev/ttyACM1
2013.08.28 11:56:02 3: CUL_868 device opened
2013.08.28 11:56:02 3: CUL_868: Possible commands: BCFiAGMRTVWXefmltux

2013.08.28 11:56:02 1: Including ./log/fhem.save
2013.08.28 11:56:02 1: usb create starting
2013.08.28 11:56:03 1: usb create end
2013.08.28 11:56:03 2: DbLog: Failed to insert new readings into database: DBD::mysql::st execute failed: UPDATE command denied to user 'fhemuser'@'localhost' for table 'current' at ./FHEM/93_DbLog.pm line 410.

die besagte Zeile in der Dblog.pm (410) ist:
Code: (dl )
1
2
3
4
5
408 if ($DbLogType =~ m(Current) ) {
409 # update or insert current
410 my $rv_uc = $sth_uc->execute(($ts, $t, $s, $value, $unit, $n, $reading));
411 if ($rv_uc == 0) {
412 my $rv_ic = $sth_ic->execute(@is);

Da MySQL sonst läuft und auch der Fhemserver denke ich mal das an der Perl sache liegt. Das ganze läuft auf ein Ubuntu 13.04 Server.
libdbi-perl libdbd-mysql-perl sind laut apt-get installiert und auf dem neusten Stand
ich hoffe das ich hier richtig bin mit meiner Frage und das mir jemand weiter helfen kann.

vielen Dank Henry

modedit Editiert von GwenDragon: Titel ergänzt
Last edited: 2013-08-28 21:00:53 +0200 (CEST)

View full thread DBD::mysql::st execute failed (FHEM Server)