You can find any version you want to install at enterprisedb.com/download-postgresql-binaries and make sure it support your windows machine.
Let's say I have downloaded the
postgresql-12.10-1-windows-x64-binaries.zip. Extract it and it contains a single folder named
pgsql. Move this
pgsql folder into
C:\laragon\bin\postgresql (You may have to create the
postgresql folder first) and then rename it into the corresponding version you have downloaded or simply just name it after the downloaded zip name.
Restart the Laragon and now the PostgreSQL menu should be available and you could start it right away.
If you are using PHP or Laravel, then make sure to enable the
and the laravel environment for postgres database as default:
PgAdmin is also available for you to manage a PostgreSQL database, just like you use PhpMyAdmin for MySQL. Make sure postgresql run first and click on "PgAdmin" menu to start.
Enter "root" for the admin password when prompted to login.
You need to create a connection to the postgresql in the laragon, so here is the setup as example:
After you save it, it should connect the pgadmin to the postgresql server and you can start to create a database.
If you're using Laragon full installation,
adminer could also works for you. Adminer could manage different types of rdbms like
PostgreSQL, and some other type of databases as well like
Elasticsearch but they still in development phase.
Make sure your laragon apache is started and just go to http://localhost/adminer/.