Re: how to create a database - Mailing list pgsql-general

From William WAISSE
Subject Re: how to create a database
Date
Msg-id 200112101632.fBAGWaJ36909@smtp1.cluster.oleane.net
Whole thread Raw
In response to how to create a database  (ranjitha ullasa <ranjithaullas@yahoo.com>)
List pgsql-general
Le Tuesday 04 December 2001 01:09, ranjitha ullasa a écrit :
> i am encoutering the following error while trying to create a database ,
> kindly provide the solution to this as soon as possible,

> bash-2.05$ createdb sat_demo1
> /Program Files/Mercury Interactive/LoadRunner/bin/sed.exe: Unexpected

 hum, so you are not using a _normal_ linux ?
 This is a pseudo_linux running under Windows ?
 Not sure Everything can work on this kind of _pseudo_linux_

> End-of-file psql: connectDBStart() -- connect() failed: No such file or
> directory Is the postmaster running locally
> and accepting connections on Unix socket '/tmp/.s.PGSQL.5432'?
> createdb: database creation failed
>

 This means that the postmaster is not running.
 You should launch the postmaster before
 ( with '/etc/init.d/posgresql start' for example ) see below :

----------------

[root@waisse william]# createdb a
psql: connectDBStart() -- connect() failed: No such file or directory
        Is the postmaster running at 'localhost'
        and accepting connections on Unix socket '5432'?
createdb: database creation failed
[root@waisse william]# /etc/init.d/po
portmap     postfix     postgresql
[root@waisse william]# /etc/init.d/pos
postfix     postgresql
[root@waisse william]# /etc/init.d/postgresql start
Checking postgresql installation: looks good!
Starting postgresql service: postmaster [14253]
[root@waisse william]# createdb a
CREATE DATABASE
[root@waisse william]#

-----------

 This works all the time on a _normal_ linux.


--
cordialement,  William WAISSE fpr = 9CCD 7DA2 7050 8805 F471  03D1 DF76 B78C
690B 4E07
  --
Computers are like air conditionners. They work better when you close windows.
  --
Visitez donc mon site perso (version 0.4 du 29/05/2001) :
http://www.neofutur.net
  --
Vous habitez dans l'Essonne et vous aimez les Pingouins ???
visitez donc la GAULE(=LUG91) : http://www.gaule.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/MU d- s: a- C++++ UL+++ P+ L++++ E--- W++ N o-- K- w---
O- M- V- PS+ PE-- Y++ PGP++ t+ 5 X++ R++ tv- b+++ DI- D G e++ h* r++ y+++
------END GEEK CODE BLOCK------

pgsql-general by date:

Previous
From: tek1
Date:
Subject: Re: alternative place to download pgaccess
Next
From: Tom Lane
Date:
Subject: Re: lost system tables: any hope?