Created
March 20, 2017 20:32
-
-
Save mehmetaydogduu/3fc3ac4bef784a69986d5895bf6b6b37 to your computer and use it in GitHub Desktop.
Commands for create and connect postgre database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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