LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2004, 12:49 PM   #1
Hady
Member
 
Registered: Nov 2003
Posts: 55

Rep: Reputation: 15
Installing PostgreSQL DBMS


Hi! i have RedHat Linux 8,
i want to be able to use PostgresSQL on my pc.
i added the packages for database servers from my RedHat CDs.
now when i write: rpm -qa | grep postgres i get
postgresql-libs-7.2.2-1
postgresql-devel-7.2.2-1
....
postgresql-7.2.2-1


when i want to create a database, i get a message like:

createdb: could not connect to database template1: 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"?

how can i make postgresql correctly installed in order to use psql?

thank you for your time and help!!

Hady

Last edited by Hady; 04-27-2004 at 01:05 PM.
 
Old 04-28-2004, 05:44 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
you must create the template databases. for creating databases, the postgres client first need to connect to a template. you can create those with the "initdb" program in the postgres bin dir, by default /usr/local/pgsql/bin, but maybe redhat installes it elsewhere. more details on setting up postgres are in the INSTALL file, I recommend to read that one first! should be in /usr/local/pgsql/.

greetz,
.-=~ iluvatar ~=-.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with SQLITE DBMS leochen Linux - Software 0 05-20-2004 08:51 PM
Postgres DBMS??! Hady Linux - Newbie 4 04-27-2004 03:19 PM
installing and running postgresql or MySql Whatshisface Linux - Software 3 02-22-2004 11:29 PM
which DBMS to learn rvijay17 Linux - General 11 03-17-2003 02:38 PM
can't installing Postgresql importboy03 Linux - Software 6 02-13-2003 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration