LARAGON – Add PostgreSQL

1. Introduction

By default Laragon, comes with MySQL installed. But adding PostgreSQL is easy.

Use Laragons build-in Quick Add option to install PostgreSQL.

2. Notice

Be sure your Windows 10 (64 bit) OS has the latest Visual C++ Redistributable for Visual Studio 2015-2019 installed.

3. What about the data?

This procedure will install PostgreSQL into your Laragon installation.
A new folder \LARAGON\data\postgresql-13\ wil be created.
It will not touch the existing MySQL or MariaDB databases.

Because MySQL/MariaDB uses port 3306 and PostgreSQL uses port 5432, both database systems can coexist at the same time.

This means you can export and import your data to migrate between database systems.

4. Laragon - Add PostgreSQL

  • In the Tools section, select Quick Add → Configuration. This will open the file \LARAGON\usr\packages.conffor editing.
  • Change the linepostgresql-11= intopostgresql-13=
  • Save and close the file.
  • In the Tools section, select Quick Add → postgresql-13.
  • Wait for the installer to finish.
  • Laragon has now installed PostgreSQL in the folder \LARAGON\bin\postgresql\
  • Laragon has also added PostgreSQL to its menu.
  • In the Laragon Button Menu, click on the Start All button.
  • Laragon has now created a new data folder \LARAGON\data\postgresql-13\

5. Laragon - Configure pgAdmin 4

  • In the PostgreSQL section, select pgAdmin 4.
  • The first time you start pgAdmin 4, it will ask you to set a password.
  • Click the Add New Server button.
    • On the General tab, give the server connection a name, for instance laragon.
    • On the Connection tab, specify the host as localhost or
    • Click the Save button.
  • You are now ready to start using PostgreSQL.

One comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.