2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

configDB.pm: allow additional mysql parameters

git-svn-id: https://svn.fhem.de/fhem/trunk@22305 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2020-06-29 16:39:50 +00:00
parent e1bd4075db
commit dc7ecf2ba6

View File

@ -1146,8 +1146,9 @@ sub _cfgDB_dump {
(undef,$dbname) = split (/=/,$dbname);
(undef,$dbhostname) = split (/=/,$dbhostname);
(undef,$dbport) = split (/=/,$dbport);
my $xparam = defined($configDB{attr}{mysqldump}) ? $configDB{attr}{mysqldump} : '';
my $dbtables = "fhemversions fhemconfig fhemstate fhemb64filesave";
my $dumpcmd = "mysqldump --user=$dbuser --password=$dbpass --host=$dbhostname --port=$dbport -Q $dbname $dbtables $gzip > $target";
my $dumpcmd = "mysqldump $xparam --user=$dbuser --password=$dbpass --host=$dbhostname --port=$dbport -Q $dbname $dbtables $gzip > $target";
Log 4,"configDB: $dumpcmd";
$ret = qx($dumpcmd);
return $ret if $ret;