pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedConnecting via perl gives "root" does not exist
2+ messages / 1 participants
[nested] [flat]
* Connecting via perl gives "root" does not exist
@ 2001-04-23 03:24 Randall Perry <rgp@systame.com>
0 siblings, 1 reply; 2+ messages in thread
From: Randall Perry @ 2001-04-23 03:24 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Connecting via perl gives "root" does not exist
@ 2001-04-23 04:36 Randall Perry <rgp@systame.com>
parent: Randall Perry <rgp@systame.com>
0 siblings, 0 replies; 2+ messages in thread
From: Randall Perry @ 2001-04-23 04:36 UTC (permalink / raw)
To: pgsql-interfaces
on 4/22/01 11:24 PM, Randall Perry at rgp@systame.com wrote:
> 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??
>
>
Never mind. Figured out how to CREATE USER and GRANT.
--
Randy Perry
sysTame
Mac Consulting/Sales
phn 561.589.6449
mobile email help@systame.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-23 04:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 03:24 Connecting via perl gives "root" does not exist Randall Perry <rgp@systame.com>
2001-04-23 04:36 ` Randall Perry <rgp@systame.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox