It is currently Tue Jun 18, 2013 11:31 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how do I get postgreSQL started?
PostPosted: Thu Oct 04, 2007 6:23 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Mon Aug 28, 2006 11:57 am
Posts: 1040
Location: Karlsruhe, Germany
Hi

I am trying to learn how to handle databases for a school project.
My question is rather simple: i have postgreSQL installed from netpkg, how do I start using it? What advice on user/file structure can you give me?
I have installed knoda to make life a little more grafical, but when I want to "connect" to a postgresql database it asks for host, database, username, password and TCP port. Now, I thought I could set up all that from _inside_ knoda...?

Thank you

DodoFXP

_________________
...and just when you thought, the shadows were safe...


 Profile Send private message  
 
 Post subject: Re: how do I get postgreSQL started?
PostPosted: Sun Oct 14, 2007 1:44 pm 
Experienced Zenwalker
Experienced Zenwalker

Joined: Thu Oct 04, 2007 5:01 am
Posts: 130
Hi :)

first , im totally noob on postgresql & sorry for my english ... :-[

Look for the postgresql.conf & pg_hba.conf : they must be configured
( don't worry , all the lignes are comment )

Then , start your postgre service ( or add postgre module in your startup service )

Open a terminal
now you can log into your postgresql account
$ su postgres ( by default )
-> password
cd /usr/bin/
./postmaster -D /var/lib/pgsql/data/ -p 5432 ( TCP port by default )

Open a new terminal
$ su postgres
-> password
psql -h 192.168.0.2 -U postgres ( cause im running local server with the user "postgres" )

in postgresql , you can create a new user & database

http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/

Im using Pgadmin3 to manage my server but 'ill take a look to knoda :)
Here's my local Worlforge server running for first time (  \!D/ )
Image

EDIT : argh ! Knoda is for KDE ...


Last edited by Tresh on Sun Oct 14, 2007 1:54 pm, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: how do I get postgreSQL started?
PostPosted: Wed Nov 14, 2007 1:50 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Mon Aug 28, 2006 11:57 am
Posts: 1040
Location: Karlsruhe, Germany
There was an error in the start script, which has been fixed. Its all cool now.  \D/

_________________
...and just when you thought, the shadows were safe...


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron