Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

creating directory /var/lib/postgresql/data ... initdb: error: could not create directory "/var/lib/postgres/data": Permission denied

chown -R postgres:postgres /var/lib/postgres/
su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
 
PREVIOUS NEXT
Tagged: #creating #directory #create #directory #Permission #denied
ADD COMMENT
Topic
Name
6+6 =