Tag: MacPorts/postgresql
sudo port install postgresql93-server
sudo mkdir -p /opt/local/var/db/postgresql93/defaultdb sudo chown postgres:postgres /opt/local/var/db/postgresql93/defaultdb sudo su postgres -c '/opt/local/lib/postgresql93/bin/initdb -D /opt/local/var/db/postgresql93/defaultdb'
/opt/local/lib/postgresql93/bin/postgres -D /opt/local/var/db/postgresql93/defaultdb or /opt/local/lib/postgresql93/bin/pg_ctl -D /opt/local/var/db/postgresql93/defaultdb -l logfile start
sudo port select --set postgresql postgresql93
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql93-server.plist
sudo port install postgresql84-server
sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb'
sudo port select --set postgresql postgresql84
/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/org.macports.postgresql84-server.plist
/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/postgresql84-server.wrapper
sudo port load postgresql84-server
sudo port unload postgresql84-server
sudo launchctl start org.macports.postgresql93-server
createuser --superuser tanaka -U postgres
createuser