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

Nautilus subversion integration tool. Execute SVN commands with Gnome scripts (guillem)
Just el que estava buscant, vaig a provar-ho. :)...(12 May)
Are you addicted to all things Apple? (charlie)
sadly? i am also addicted to that dam apple brand, i currently own a from the bottom up... a 1st, 2n...(06 May)
De conferencias con una Psion 5mx (Paul Erice)
Hablando de 5mx, tengo una Ericsson 5mx (que es basicamente una Psion 5, y nunca he conseguido conec...(23 Apr)
Cómo reiniciar o resetear un ipod colgado (Carlos)
Muchas gracias. Funciona!!...(21 Apr)
Recovering space on an iphone or ipod touch (ka)
How to Login???...(08 Apr)

Login