in reply to connect database
From the DBD::Pg documentations section on the connect method:
"The following connect statement shows almost all possible parameters:"
$dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=$host;port=$port;optio +ns=$options", $username, $password, {AutoCommit => 0, RaiseError => 1, PrintError => 0} ); );
So try:
my$dbh = DBI->connect("DBI:Pg:dbname=five;port=5432", 'postgres', '', { RaiseError => 1, AutoCommit => 0 }) or die "kon de database niet ope +nen!";
Update: Changed wording of the opening sentence.
Update 2: Added blank password, thanks erix
Hope this helps
Martin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: connect database
by Bass-Fighter (Beadle) on Jan 08, 2009 at 13:16 UTC |