Обсуждение: Perl5 connect problem

Поиск
Список
Период
Сортировка

Perl5 connect problem

От
Maarten Boekhold
Дата:
Hi,

I'm moving some perl-scripts from a 6.2 server to a new machine which
runs 6.3.2. Also, on the old server authjentication was non-existant, it
used 'trust', while the new one uses passwords.

In the scripts, I have:

$PG_CONN = PQconnectdb("dbname=rockhouse user=username password=passwd
authtype=password");

I used old-style perl API in these scripts, but with that you cannot
specify passwords, thus this strange mix.

This fails, although I remember having tried it at home, where it worked,
and having username/password/database name correct. Connecting to the
database using psql gives no problems. postmaster runs with -i.

Any clue?

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M.Boekhold@et.tudelft.nl                         |
-----------------------------------------------------------------------------