From: | Andy Lewis <alewis(at)mpsi(dot)net> |
---|---|
To: | pgsql-admin(at)postgreSQL(dot)org |
Subject: | Authentication Problem |
Date: | 1998-10-30 17:22:52 |
Message-ID: | Pine.LNX.3.96.981030111142.3514A-100000@shell.mpsi.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I'm running PHP 3.05 on a remote machine trying to make a connection to our
Postgres 6.1 machine.
Here's the error that I'm getting:
---------------------------------------------------------------------
Warning: Unable to connect to PostgresSQL server: Failed to authenticate client
as Postgres user 'nobody' using : be_recvauth:
unrecognized message type: 65536
---------------------------------------------------------------------
Here's the line that I have in my pg_hba.conf file:
---------------------------------------------------------------------
host mytable 209.39.234.0 255.255.255.255 trust
---------------------------------------------------------------------
Here's the PHP code that I am using:
---------------------------------------------------------------------
<?
$query = "insert into stuff values('My Name'); ";
$conn = pg_Connect("my.domain.com", "5432", "", "", "mytable");
if (!$conn) {
echo "An error occured.\n";
exit;
}
$result = pg_Exec($conn, "$query");
if (!$result) {
echo "An error occured.\n";
exit;
}
?>
---------------------------------------------------------------------
I've banged my head against the wall on this one!
Thanks
From | Date | Subject | |
---|---|---|---|
Next Message | Marcus Mascari | 1998-10-31 19:16:17 | PLEASE...SOMEONE COMMENT: PostgreSQL 6.4BETA not using indexes with subselects |
Previous Message | Jan Wieck | 1998-10-28 19:39:27 | Re: [ADMIN] Security for web server access? |