Anonymous Anonymous

Installing and configuring PostgreSQL server on Mac

Friday, 04 de November del 2005
filed under , ,

You can use the Fink package system to install postgresql if you are already using Fink (inside a terminal: sudo fink install postgresql and then configure the server).

OR you can install postgresql, with the clean solution offered by Marc Liyanage.

I prefer the 2nd option. If you also choose that, follow carefully the installation instructions and you'll have PgSQL working in minutes.

If you'd like to have 2 scripts for manually starting and stoping the database create the files:

Starting script (pgstart.sh)

su postgres -c "/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l ~/postgres.log start" (line wrapped)

Stop script (pgstop.sh)

su postgres -c "/usr/local/bin/pg_ctl -D /usr/local/pgsql/data stop" You need execute permissions in these scripts [by chmod 755 pgstart.sh pgstop.sh] and you can invoke them with ./pgstop.sh and ./pgstart.sh commands within the terminal. Note that the postgres password will be prompted.

Was this post interesting?

Related posts

Leave your comment

Leave your comment
You need javascript to be activated on irder to leave comments

Login in OboLog, or create free blog if you don't have one yet.

Then we'll remember your data and show your avatar in your comments.

Sponsors

Comments

How to play MP3 with Ubuntu (alombarte)
Pues diría que no ;)...(20 Aug)
How to play MP3 with Ubuntu (leonardocipet)
...(20 Aug)
How to play MP3 with Ubuntu (leonardocipet)
Ya voté...(20 Aug)
How to play MP3 with Ubuntu (alombarte)
That was a post of the year 2006. I think that the new version of Ubuntu comes with mp3 support a...(16 Aug)
How to play MP3 with Ubuntu (ben)
hi, suppose I got no internet on the computer i wanna play mp3  with? what f...(14 Aug)

Login