Install and configure PostgreSQL on Windows

You can download the msi package from their website, run it.

Next you run the following command

initdb -D /path/to/data/location

start the server with

pg_ctl.exe start -D /path/to/data/location

create a new database:

createdb databaseName

now you’re ready to acces it:

psql databaseName

Leave a Reply

Your email address will not be published. Required fields are marked *

Please reload

Please Wait