Received: from fmx2.freemail.hu ([194.38.105.22]) by postgresql.org (8.11.3/8.11.4) with SMTP id fAOMaBm50868 for ; Sat, 24 Nov 2001 17:36:12 -0500 (EST) (envelope-from plauko@freemail.hu) Received: (qmail 57315 invoked from network); 24 Nov 2001 23:36:16 +0100 Received: from fm3.freemail.hu (194.38.105.13) by 194.38.105.22 with SMTP; 24 Nov 2001 23:36:16 +0100 Received: (qmail 47750 invoked by uid 1038828); 24 Nov 2001 23:36:12 +0100 Date: Sat, 24 Nov 2001 23:36:12 +0100 (CET) From: =?ISO-8859-2?Q?Lauk=F3_P=E9ter?= Subject: Connection problem To: pgsql-php@postgresql.org Message-ID: X-Originating-IP: [62.112.199.5] X-HTTP-User-Agent: Mozilla/4.75 [en] (Windows NT 5.0; U) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2 X-Archive-Number: 200111/127 X-Sequence-Number: 768 Hi, I try to connect to a PostgreSQL database from my php script, and get the following error: Warning: Unable to connect to PostgreSQL server: FATAL 1: Database "www-data" does not exist in the system catalog. in /home/lao/proj/hajnalcsillag/www/classes/DBConnection.php on line 10 The code is: con_string ); } } ?> I could solve part of the problem by creating a user and database called 'www-data'. Since I have several sites on the same server, I need more independent db-s, so this solution is not enough. This seems to be a configuration problem, but I don't know where to turn off this (security?) option. The versions are: PHP Version 4.1.0RC1 PostgreSQL 7.1.3 Apache/1.3.22 Debian sid Could anyone help me please? Thanks, Peter