Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using Mandrake 8.0, and lately I installed postgresql 7.4.2, cause the version mandrake had was 7.2.2.
Everything works fine, I run psql normally. I'm using another program, RQL to query RDF that are stored in postgres. That works too.
The problem came up when I tried to use a Java API to do that work inside a java program. I get error messages which say that I can't connect to the database.
I'm not sure that this is the reason, but here's what I found out. First, by upgrading to postgres 7.4.2, the service doesn't start up with the operating system. So, I have to do this:
su - postgres
every time, to start up the service. So far so good, cause everything works after that, except from the Java API.
I checked in Mandrake Control Center the services, and even after I start up postgres manually, it says that postgres isn't running. Not only this, but it's set to start on boot (which it doesn't) and the buttons 'START' and 'STOP' do nothing. They always print error messages like: "Couldn't start service" or "Couldn't stop service", no matter if I have started it manually, or stopped it.
Now, since everything in installing postgres went fine, and RQL installation fine too, I suppose that the API failure has something to do with that. It doesn't recognize that postgres is running (Don't know why). I get that feeling, cause I get the same exception messages, no matter if postgres is up (manually by me) or down.
Oh, I should say that before I upgraded to postgres 7.4.2, the previous version did start up on boot.
How can I make postgres start up on boot? And I hope that this is the reason why the link to the database doesn't work.