Here's the fix for all you care:
1. create the data folder:
sudo mkdir -p /var/lib/pgsql/data
2. change ownership of the folder to user postgres
sudo chown postgres /var/lib/pgsql/data
3. logon to user postgres:
sudo -i -u postgres
4. create the db:
initdb -D '/var/lib/pgsql/data'
5. start the db!
sudo service postgresql start
You're welcome.
No comments:
Post a Comment