dbTalk Databases Forums  

psql error: could not connect to server

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss psql error: could not connect to server in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bartvde@xs4all.nl
 
Posts: n/a

Default psql error: could not connect to server - 01-09-2004 , 03:39 PM






Hi list,

I just downloaded the source from PostgreSQL 7.4.1 and installed it on Red
Hat 9. Install was succesfull. After this I installed PostGIS 0.8.0.

To test the PostGIS install I need the perform the following command:

createlang plpgsql postgistest

But on performing this I get the following error:

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error

Anybody have an idea what could be the problem?

Thanks in advance!

Best regards,
Bart

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #2  
Old   
Bruno Wolff III
 
Posts: n/a

Default Re: psql error: could not connect to server - 01-09-2004 , 03:41 PM






On Fri, Jan 09, 2004 at 22:39:09 +0100,
bartvde (AT) xs4all (DOT) nl wrote:
Quote:
Hi list,

I just downloaded the source from PostgreSQL 7.4.1 and installed it on Red
Hat 9. Install was succesfull. After this I installed PostGIS 0.8.0.

To test the PostGIS install I need the perform the following command:

createlang plpgsql postgistest

But on performing this I get the following error:

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error

Anybody have an idea what could be the problem?
Most likely the server isn't running.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
bartvde@xs4all.nl
 
Posts: n/a

Default createdb - 01-09-2004 , 04:40 PM



Hi,

I got it up and running with:

[root@localhost init.d]# ./postgresql start
Initializing database: [ OK ]
Starting postgresql service: [ OK ]

But now I want to create a database, but I cannot do this with the root
user. What is the best way to do this?

I tried with user postgresql but what password to use?

createdb --username=postgresql mydb

Thanks in advance.

Best regards,
Bart

Quote:
On Fri, Jan 09, 2004 at 22:39:09 +0100,
bartvde (AT) xs4all (DOT) nl wrote:
Hi list,

I just downloaded the source from PostgreSQL 7.4.1 and installed it on
Red
Hat 9. Install was succesfull. After this I installed PostGIS 0.8.0.

To test the PostGIS install I need the perform the following command:

createlang plpgsql postgistest

But on performing this I get the following error:

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error

Anybody have an idea what could be the problem?

Most likely the server isn't running.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #4  
Old   
Bruno LEVEQUE
 
Posts: n/a

Default Re: createdb - 01-09-2004 , 04:49 PM



Hi,

I think you have a problem with the installation. You MUSN'T install
postgresql with root account. The user of the installation is the
administrator of the database and you can create database with it
without password (till you give one to it).

Bruno

bartvde (AT) xs4all (DOT) nl wrote:

Quote:
Hi,

I got it up and running with:

[root@localhost init.d]# ./postgresql start
Initializing database: [ OK ]
Starting postgresql service: [ OK ]

But now I want to create a database, but I cannot do this with the root
user. What is the best way to do this?

I tried with user postgresql but what password to use?

createdb --username=postgresql mydb

Thanks in advance.

Best regards,
Bart



On Fri, Jan 09, 2004 at 22:39:09 +0100,
bartvde (AT) xs4all (DOT) nl wrote:


Hi list,

I just downloaded the source from PostgreSQL 7.4.1 and installed it on
Red
Hat 9. Install was succesfull. After this I installed PostGIS 0.8.0.

To test the PostGIS install I need the perform the following command:

createlang plpgsql postgistest

But on performing this I get the following error:

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error

Anybody have an idea what could be the problem?


Most likely the server isn't running.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings





---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



--
Bruno LEVEQUE
System Engineer
SARL NET6D
bruno.leveque (AT) net6d (DOT) com
http://www.net6d.com


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.