How To Change Directory Data Of Postgresql
- # service postgresql stop
- # mkdir /home/anwar/postgresql
- # chown -R postgres.postgres /home/anwar/postgresql
- # passwd
New Password:
Retype: - # su - postgres
- $ initdb -D /home/anwar/postgresql
- $ sudo su
- # service postgresql start
if you have director before:
- # service postgresql stop
- # kill postmaster
- # su - postgres
- $ postgres -D /home/anwar/postgresql
- $ sudo su
- # service postgresql start
or you can edit configuration in /etc/init.d/postgresql
looking up /var/lib/pgdata to be /home/anwar/pgdata
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.