From: Amos Jeffries Date: Fri, 3 Nov 2023 12:24:20 +0000 (+0000) Subject: log_db_daemon: Fix DSN construction (#1570) X-Git-Tag: SQUID_6_6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f0b06198837c3a4a1215ebcd1aaaa08b6430f62;p=thirdparty%2Fsquid.git log_db_daemon: Fix DSN construction (#1570) --- diff --git a/src/log/DB/log_db_daemon.pl.in b/src/log/DB/log_db_daemon.pl.in index 9e19977014..64bfa67457 100755 --- a/src/log/DB/log_db_daemon.pl.in +++ b/src/log/DB/log_db_daemon.pl.in @@ -392,7 +392,7 @@ my @db_fields = qw( ); # perform db connection -my $dsn = "DBI:mysql:database=$database" . ($host ne "localhost" ? ":$host" : ""); +my $dsn = "DBI:mysql:database=$database" . ($host ne "localhost" ? ";host=$host" : ""); my $dbh; my $sth; eval {