Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am new to PostgreSQL Database. I need to install it in my machine.

I am not administrator in my system.

Can some one suggest, if Non-Administrator can install it.

If there is any other way of installing apart from .exe, please let me know.

Thanks In Advance.

share|improve this question
add comment

migrated from stackoverflow.com Dec 19 '12 at 8:32

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 7 down vote accepted

Try this Starting PostgreSQL in windows without install. Follow the steps below:

  • Get binaries for Windows. You can either copy the postgresql folder (minus the data folder) from an existing PostgreSQL install, or just download the PostgreSQL binaries from PostgreSQL Windows. Make sure to choose the zip archive.
  • Next copy the below batch file into the root of the postgresql folder
  • For first time use, unremark out the (initdb step)
  • Run the batch file:

.

@ECHO ON

REM The script sets environment variables helpful for PostgreSQL

@SET PATH="%~dp0\bin";%PATH%

@SET PGDATA=%~dp0\data

@SET PGDATABASE=postgres

@SET PGUSER=postgres

@SET PGPORT=5439

@SET PGLOCALEDIR=%~dp0\share\locale

REM "%~dp0\bin\initdb" -U postgres -A trust

"%~dp0\bin\pg_ctl" -D "%~dp0/data" -l logfile start

ECHO "Click enter to stop"

pause

"%~dp0\bin\pg_ctl" -D "%~dp0/data" stop
share|improve this answer
1  
+1 that's basically the same batch file I am using. –  a_horse_with_no_name Dec 19 '12 at 7:47
    
@Aan..Thank you for the great answer. –  Patan Dec 19 '12 at 13:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.