From: | Randall Perry <rgp(at)systame(dot)com> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Connecting via perl gives "root" does not exist |
Date: | 2001-04-23 03:24:26 |
Message-ID: | B70918AA.A190%rgp@systame.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
I'm new at PostgreSQL.
So far, succesfully compiled & installed it. Created a db, created a table,
and 'copied' tab-delim data into it.
Also downloaded and installed Perl Pg mod (that was a pain; had to sen ENV
variables, and had to force install because of the "root" does not exist
error in make test).
Here's the example script from the Pg readme (with my own db info):
use Pg;
$conn = Pg::connectdb("dbname=tasbill");
$res = $conn->exec("SELECT * from cust");
while (@row = $res->fetchrow) {
print join(" ", @row);
}
Works fine if I log in as 'postgres' before executing script, but fails if
logged in as any other user. I'm using the default pg_hba.conf file, which I
thought would allow local users to connect to any database:
local all trust
host all 127.0.0.1 255.255.255.255 trust
What am I missing??
--
Randy Perry
sysTame
Mac Consulting/Sales
From | Date | Subject | |
---|---|---|---|
Next Message | Randall Perry | 2001-04-23 04:36:52 | Re: Connecting via perl gives "root" does not exist |
Previous Message | Matthew Hixson | 2001-04-22 21:07:08 | Re: Client/Server Security question |