[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug or newbie stupidity?



Error message syntax question.

Not vitally important, but enquiring minds want to know.

Why does;

----------------------------------------------------------------------------------------
#!/usr/bin/perl
use strict;
use warnings;
use DBI;

my
$dbh=DBI->connect("dbi:Pg:dbname=dbname;host='mercury';port=5432;",,"dbuser","dbpass",);
----------------------------------------------------------------------------------------

think my server name is "8'@@" (or other random junk) on Debian Sarge
installs (all of mine).

----------------------------------------------------------------------------------------
DBI connect('dbname=dbname;host='mercury';port=5432;','dbuser',...)
failed: could not connect to server: 8´@@
        Is the server running on host "mercury" and accepting
        TCP/IP connections on port 5432?
 at perl/con line 6
----------------------------------------------------------------------------------------



Reply to: