LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing PostgreSQL DBMS (https://www.linuxquestions.org/questions/linux-software-2/installing-postgresql-dbms-175186/)

Hady 04-27-2004 12:49 PM

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

iluvatar 04-28-2004 05:44 AM

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 ~=-.


All times are GMT -5. The time now is 08:34 AM.