Re: createdb after initdb - Mailing list pgsql-general

From missive@frontiernet.net (Lee Harr)
Subject Re: createdb after initdb
Date
Msg-id 9jujnh$3pk6$1@node21.cwnet.roc.gblx.net
Whole thread Raw
List pgsql-general
On Fri, 27 Jul 2001 20:45:45 +0100, Danno <danny@intuitivemedia.com> wrote:
> I'm trying to get Postgres up and running.  I've followed the
> instructions in the online documentation and started the postmaster.
>
> I can add users, so I gave myself the privieges to add users and
> create databases, but I get this error when I attempt to create a new
> database.
>
> $ ./createdb test
> ERROR:  CREATE DATABASE: Could not initialize database directory. Delete
> failed as well
> createdb: database creation failed
>

Make sure it is working on the correct dirctory:

createdb -D /usr/local/pgsql/data/ test

or try creating the new database from psql:

psql template1
create database test;


pgsql-general by date:

Previous
From: A_Schnabel@t-online.de (Andre Schnabel)
Date:
Subject: Re: Visual Basic and PostgreSQL ODBC
Next
From: missive@frontiernet.net (Lee Harr)
Date:
Subject: Re: Problems linking with libpq