LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-05-2001, 08:19 AM   #1
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
PostgreSQL postmaster//users question


Hello,

I've installed PostgreSQL 7.0.? (it came with the standard REd Hat 7.1 distribution). Now the problem is when I type postmaster at the commandline, it says,

"the PostgreSQL cannot be run as 'root' user..."

Now, there Is a user called postgreSQl. Now, my question is:

How do I start up postgreSQL ? It is not started when the machine starts up....

Thanks,

Best REgards,

Ahsan A.
 
Old 09-06-2001, 08:34 AM   #2
arraman
LQ Newbie
 
Registered: Jun 2001
Posts: 14

Rep: Reputation: 0
To start Postgresql

1) Login in as root.
2) Type ntsysv, there enable postgres
Doing this allows to start postmaster everytime the machine is booted.
3) restart your machine.
4) Login in as root
5) type su -postgres
6) Type createuser & specify which user wants to access postgres.
7) then just type psql

Hope it's clear.



Raghu Raman.
 
Old 02-05-2008, 03:14 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by DoubleLetter View Post
Hello,

I've installed PostgreSQL 7.0.? (it came with the standard REd Hat 7.1 distribution). Now the problem is when I type postmaster at the commandline, it says,

"the PostgreSQL cannot be run as 'root' user..."

Now, there Is a user called postgreSQl. Now, my question is:

How do I start up postgreSQL ? It is not started when the machine starts up....

Thanks,

Best REgards,

Ahsan A.
I'd strongly recommend updating both the OS and Postgres to
a sensible version. PostgreSQL 7.3 is about to go out of
support sometime soon, and chances are that you're running
a version that had tons of patches after RH bundled it....
or at least try to get all the patches/fixes applied that
you possibly can.

As for the actual question: check the content of your postgres
rpms ... that should give you pointers as to which files are
a) involved in starting postgres (e.g. /etc/init.d/postgres)
and b) where postgres logs to. Both pieces of information
should aid you in finding out why it doesn't start.

something like:
Code:
rpm -ql $( rpm -qa | grep -i postgres )


Cheers,
Tink
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question Of Postgresql treotan Linux - Newbie 5 09-22-2004 06:45 AM
PostgreSQL (or just SQL) question jacksmash Programming 6 12-30-2003 10:46 AM
Default users for MySQL and PostgreSQL in RH8? arthurzap Linux - Software 0 03-26-2003 08:04 AM
PostgreSQL question digital bots Linux - Newbie 3 06-18-2002 12:37 AM
MySQL of PostgreSQL that is the question? Noerr Linux - Software 17 06-02-2002 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:37 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