3.2.1 SonarQube - PostgreSQL Server Configuration

PostgreSQL Setup:

PostgreSQL Server for Windows can be installed using the PostgreSQL Installer that installs and updates all PostgreSQL products using Stackbuilder on Windows or the standalone .msi installation package.

Important

Installing pgAdmin4 using an Installer package requires either Administrator or Power User privileges.

Requirements for Windows

  • Microsoft .NET Framework 4.5

  • Microsoft Visual C++ 2015 Redistributable Package

  • Java Development Kit

  • ODBC Installer for PostgreSQL

Installation Using PostgreSQL Installer

The general PostgreSQL Installer download is available at https://www.postgresql.org/download/windows/ . The PostgreSQL Installer application can install, upgrade, and manage most PostgreSQL products, including pgAdmin4.

Once the installation is done configure the setup by changing the root password and remember for future purpose.

After the installation open the "pgAdmin4" and connect to the default instance by entering the root password.

Open a new query editor and run the query for user creation.

Database creation

Navigate to the earlier download location of SonarQube. Right click the zip file and choose unblock.

  • Unzip the file and copy the binaries to the folder C:\SonarQube\

  • Open the SonarQube properties file sonar.properties from the following location C:\SonarQube\sonarqube-8.9.0.43852\conf.

  • In the wrapper.conf look for the update in Java

In the sonar.properties file look for ‘#—– PostgreSQL Server. This needs to have the connection string for the PostgreSQL server database you intend to use.

  • Update the section by adding the connection string of the database

Save and Start the Server to get the sonarqube service running.

Last updated

Was this helpful?