0% found this document useful (0 votes)
70 views4 pages

Postgresql Windows Installation: Steps

The document outlines the steps to install PostgreSQL on Windows: 1. Download the PostgreSQL installer from the listed URL. 2. Run the installer and enter a password for the default 'postgres' superuser account. 3. Update the pg_hba.conf file and restart the PostgreSQL service to complete the installation.

Uploaded by

Vignesh Waran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views4 pages

Postgresql Windows Installation: Steps

The document outlines the steps to install PostgreSQL on Windows: 1. Download the PostgreSQL installer from the listed URL. 2. Run the installer and enter a password for the default 'postgres' superuser account. 3. Update the pg_hba.conf file and restart the PostgreSQL service to complete the installation.

Uploaded by

Vignesh Waran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

PostgreSQL Windows Installation

Steps:

1. Open the following URL


http://www.postgresql.org/download/windows/

2. Click on the download link and the following the page will be displayed.
http://www.enterprisedb.com/products-services-training/pgdownload#windows
3. Download Installer version 9.4.1 (Win x86-64) and the following exe file will be downloaded.
postgresql-9.4.1-1-windows-x64.exe
4. Double click the above downloaded exe file.

5.Enter the database super user password.(default :postgres123)


5. Click next button to continue installation process.
6. Click on the finish to complete installation
7. After successful installation, update pg_hba.conf file (C:\Program Files\PostgreSQL\9.4\data)
with below changes.
# TYPE DATABASE USER ADDRESS METHOD

# IPv4 local connections:


host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5

8. Open task Manager->Services , first stop and then start the postgres service(postgresql-x64-9.4)
9. Click All Programs -> PgAdmin -> PostgreSQL 9.4 and enter the default password postgres123
10. Click on SQL Editor available in the PgAdmin console and execute the following sql commands.
11. create user root with password 'paridb';
12. Disconnect from the pgadmin.
13. Run the DBConfigurator.cmd ( present in bin directory with below options)
DBConfigurator.cmd set localhost 5432 postgres root paridb postgres
14. Open a new command prompt.
15. Run the reinitdb_all.cmd 1(1for postgres and 0 for oracle).
16. Open a new command prompt and run the below command again.
DBConfigurator.cmd set localhost 5432 paridb root paridb postgres

You might also like