Install Postgresql on CentOS 6.4

These installation steps should also apply to other distros based on RedHat source RPMs.

Logged in as root on the system run the following commands:

Edit the file /var/lib/pgsql/data/pg_hba.conf

To restart the postgresl DB run the command:

Create postgresql test user and database

Configure postgresql to accept all TCP connections

Edit the file /var/lib/pgsql/data(postgresql.conf

Restart again the postgresl DB:

Test the connection using the user and password

psql -U appuser -h 127.0.0.1 -W -d a++

Backup and restore with pg_dump

PostgreSQL (last edited 2013-08-13 14:42:15 by bl12-209-207)