Skip site navigation (1) Skip section navigation (2)

Re: FATAL 1: Database dbname=template1 does not exist in pg_database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chuettl(at)ahorn-Net(dot)de
Cc: PostgreSQL Liste Novice <pgsql-novice(at)postgresql(dot)org>, PostgreSQL Liste General <pgsql-general(at)postgresql(dot)org>
Subject: Re: FATAL 1: Database dbname=template1 does not exist in pg_database
Date: 2000-06-26 14:59:51
Message-ID: 17186.962031591@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Carsten Huettl <chuettl(at)ahorn-Net(dot)de> writes:
> When I ty to access my pgsql with apache and php3 I got the following
> error:

> FATAL 1:  Database dbname=template1 does not exist in pg_database
> When I connect with psql I can see template1.

> How do I insert template1 into pg_database?

Read it again: the error message is complaining because you tried to
access a database named "dbname=template1".  Better check the syntax
on the connection subroutine you are using --- looks like a confusion
between positional parameters and keyword-style connect strings...

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Ryan HoDate: 2000-06-26 16:46:30
Subject: How to install perl module without root access
Previous:From: Kristensen PoulDate: 2000-06-26 13:09:47
Subject: Installation problem(Error: unknown type oidvector)

pgsql-general by date

Next:From: Poul L. ChristiansenDate: 2000-06-26 15:32:18
Subject: Re: Conversion from MS Access to Postgresql
Previous:From: hgonzalDate: 2000-06-26 14:30:55
Subject: testing - please ignore

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group