Guest User

Untitled

a guest
May 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. alex-mctammanys-macbook:campus alexmctammany$ sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb
  2. alex-mctammanys-macbook:campus alexmctammany$ sudo chown postgres:postgres /opt/local/var/db/postgresql84/
  3. alex-mctammanys-macbook:campus alexmctammany$ sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb'
  4. The files belonging to this database system will be owned by user "postgres".
  5. This user must also own the server process.
  6.  
  7. The database cluster will be initialized with locale en_CA.UTF-8.
  8. The default database encoding has accordingly been set to UTF8.
  9. The default text search configuration will be set to "english".
  10.  
  11. fixing permissions on existing directory /opt/local/var/db/postgresql84/defaultdb ... initdb: could not change permissions of directory "/opt/local/var/db/postgresql84/defaultdb": Operation not permitted
Add Comment
Please, Sign In to add comment