----- Original Message -----
From: "Stephen M. Ford" <[EMAIL PROTECTED]>
Subject: dbd::Pg again
> Can someone tell me what is wrong with this statement?
> $dbh = DBI->connect("dbi:Pg:tracker;host=bullwinkle;port=5432;","","");
> DBI->connect(tracker;host=131.204.12.48;port=5432;) failed: 1 at
./tracker2.pl line 16

If you had done as Ilya suggested and read the Fine Manual at
http://theoryx5.uwinnipeg.ca/CPAN/data/DBD-Pg/dbd-pg.html, you would have
seen the following:

----------------------------
Connect Syntax
The DBI->connect() Data Source Name, or DSN, can be one of the following:

  dbi:Pg:dbname=$dbname
  dbi:Pg:dbname=$dbname;host=$host;port=$port;options=$options;tty=$tty
----------------------------

Note the dbname=$dbname.

You could have avoided wasting your time and ours by simply reading the very
first paragraph of the docs.

             -Mike

Reply via email to