From 099f323a72ce907c8f0183f5f924218762d35346 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 11 Nov 2021 09:19:56 +0000 Subject: [PATCH] fixed database connection string --- bin/mpd-feeder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mpd-feeder b/bin/mpd-feeder index 6cc9c19..95227e9 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -159,7 +159,8 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf'; method connect_db { return if $db; - $db = DBI->connect( "dbi:" . $opt->db_path, + $db = + DBI->connect( "dbi:Pg:dbname=" . $opt->db_path, $opt->db_user, $opt->db_password, { RaiseError => 1, AutoCommit => 1 } ); -- 2.39.2