mirror of https://github.com/mikaku/Monitorix.git
fixed to include the DBI->connect parameter 'dbname=postgres' in 'pgsql.pm' to avoid connection problems #310
This commit is contained in:
parent
0ad16e8a78
commit
d4f82e2752
|
@ -203,7 +203,7 @@ sub pgsql_update {
|
||||||
my $pass = $pgsql->{desc}->{$pg}->{password} || "";
|
my $pass = $pgsql->{desc}->{$pg}->{password} || "";
|
||||||
my $dbh;
|
my $dbh;
|
||||||
$dbh = DBI->connect(
|
$dbh = DBI->connect(
|
||||||
"DBI:Pg:host=$host;port=$port",
|
"DBI:Pg:host=$host;port=$port;dbname=postgres",
|
||||||
$user,
|
$user,
|
||||||
$pass,
|
$pass,
|
||||||
{ PrintError => $print_error, }
|
{ PrintError => $print_error, }
|
||||||
|
|
Loading…
Reference in New Issue