1 | initial version |
To generate the most recent SonarQube version incorporating an integrated database, follow these steps:
Download the latest version of SonarQube from the official website.
Install a database server software. SonarQube supports several database servers, including MySQL, PostgreSQL, and Microsoft SQL Server. Choose a database server software that fits your requirements.
Create a new database for SonarQube. You can use the database server software's interface or command line tools to create a new database.
Configure SonarQube to use the integrated database. Edit the SonarQube configuration file (sonar.properties) and set the appropriate database connection properties. The properties depend on the database server software you chose.
For example, if you are using MySQL server:
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonarqube?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
sonar.jdbc.username=sonarqube
sonar.jdbc.password=sonarqube_password
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
Start the SonarQube server. You can start the server by running the startup script (sonar.sh or sonar.bat) located in the bin/ directory.
Open your web browser and navigate to http://localhost:9000/. You should see the SonarQube login page.
Log in with the default credentials (admin/admin). You should see the SonarQube dashboard.
Congratulations! You have now generated the most recent SonarQube version incorporating an integrated database.