Skip to content

Instantly share code, notes, and snippets.

@mehmetaydogduu
Created March 20, 2017 20:32
Show Gist options
  • Save mehmetaydogduu/3fc3ac4bef784a69986d5895bf6b6b37 to your computer and use it in GitHub Desktop.
Save mehmetaydogduu/3fc3ac4bef784a69986d5895bf6b6b37 to your computer and use it in GitHub Desktop.
Commands for create and connect postgre database
1. Install Postgre from any repo or source
-> ... search in www ...
create a directory [ example home/.postgre ]
-> mkdir ~/.postgre
create database system
-> cd ~/.postgre && initdb /data
create database [ example appname_postgredb ]
-> createdb appname
start postgresql
-> pg_ctl -D ~/.postgre/data -l logfile start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment