Problem with perl DBI => postgress after upgrade
Aart Koelewijn
aart at mtack.xs4all.nl
Fri Nov 12 20:13:06 UTC 2010
On Fri, 12 Nov 2010 19:48:14 +0000, Aart Koelewijn wrote:
> I run a home-written perl program to fill a postgres database with
> measurements. In this program I have the line:
>
> $dbh = DBI->connect("dbi:Pg:dbname=$dbname;host=$host","","");
>
> This always worked fine. Since I upgraded my box from Ubuntu 10.04 to
> 10.10 this afternoon, when I try to run the program I get:
>
> DBI connect('dbname=bluetooth;host=mtack3','',...) failed: fe_sendauth:
> no password supplied at bin/bttracking.pl line 62 Can't call method
> "prepare" on an undefined value at bin/bttracking.pl line 63.
As often, after posting the problem I find a solution in minutes. After
changing `my $host="mtack"' in the perl program to `my $host="localhost"'
all is fine.
Aart
More information about the ubuntu-users
mailing list