Sunteți pe pagina 1din 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

S-ar putea să vă placă și