lunes, 18 de enero de 2016

first steps with postgresql for inpatients

The following is a bash script that show easy steps for getting started with postgresql and verified in a arch linux distribution. There are also some comments for explaining, ideal for inpatients:
DATA_FOLDER=.data
mkdir myproject
cd myproject

initdb -D $DATA_FOLDER

#TODO DONT DO THIS IN PRODUCTION
sudo chmod -R a+wr /run/postgresql/ 

postgres -D $DATA_FOLDER >logfile 2>&1 &

createdb mydb

No hay comentarios: