LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2004, 05:00 PM   #1
RodCas
LQ Newbie
 
Registered: May 2004
Location: Guatemala
Distribution: SlackWare
Posts: 17

Rep: Reputation: 0
PosgreSQL server with mandrake 9.1 ?


Hi, can anyone help me with setting up aa pgsql server with mandrake 9,1 with the postgres that comes with it ? Im stuck, cant find the directory with DATA.
 
Old 05-08-2004, 01:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I am assuming the postgresql package was selected during the install?

So how are you stuck? What problems are you having? Is postmaster running?

I've changed my directories from the default and its been awhile... but it is in /var/pgsql I do believe.

I do not have 9.1 installed but I would assume that MDK has not changed from previous versions.
 
Old 05-08-2004, 03:09 PM   #3
RodCas
LQ Newbie
 
Registered: May 2004
Location: Guatemala
Distribution: SlackWare
Posts: 17

Original Poster
Rep: Reputation: 0
Yeah it was selected during install, postmaster isnt running off the bat tho, I need to activate and I "think" this does it : please tell me if im wrong
" from root # /etc/rc.d/init.d/postgresql start "... after this i checked my running processes and it has three postgres processes running,
postmaster...postgres data retrieve .. and cant remember the third one. Does this mean my pqsql server is running ?

Ill look for the pgsql dir you just told me about .... and ill try running postmaster from that if I do find it.

thx
 
Old 05-08-2004, 05:11 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
I do not run the latest version of postgresql but it appears to be correct. If postmaster is running try starting the frontend:
psql

Unless you add the regular user to postgresql you will see some errors.
For documentation see www.postgresql.org. The first things to do are add your regular user to postresql so it can manage databases. You will need to su to the postgresql user - postgres and then use the createuser command. After that your regular user will be able to create databases.

You can configure postgresql to start at boot. Look at Mandrake Control Center under services. The init scripts tell postmaster where the database is located.

Only if you start postmaster from the command line as below would you need to include the database location

#postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
 
  


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
How can I start Posgresql in FC3? linx win Fedora 2 11-30-2004 12:47 AM
name server in mandrake 10 stufi Linux - Networking 1 04-24-2004 10:15 AM
Mandrake 9 to be a server CYRUSS612 Linux - Newbie 6 10-07-2003 02:37 AM
mandrake server 9.1 david@aber Linux - Distributions 2 07-14-2003 10:45 AM
Interesting TCP/IP Problem? PosgreSQL and Internet Connection Sharing Don't Work iaypaa Linux - Networking 3 11-04-2002 05:23 AM

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

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

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