Here are instructions for SonarQube v8.4.2:
After logging in to SonarQube with administration credentials (admin/admin, if you downloaded the vanilla installation), then you can navigate from the top menu labeled "Administration", click on "System", click on "System" drop-down box, and look for the Database section. You will find "user" and "URL". Confirm this is what you expect.
In my default installation, I used the following to log into the H2 console (after ensuring my SonarQube instance is up, I had to restart it since it had been running too long also, I think it must have stalled):
Driver Class: org.h2.Driver
JDBC URL: jdbc:h2:tcp://localhost:9092/sonar
There is no username and password needed. If you want to set one, then you can modify the sonar.jdbc.username
and sonar.jdbc.password
properties in the your-sonarqube-installation-directory/conf/sonar.properties
file. Here's a snippet of it:
# User credentials.
# Permissions to create tables, indices and triggers must be granted to JDBC user.
# The schema must be created first.
#sonar.jdbc.username=
#sonar.jdbc.password=
#----- Embedded Database (default)
# H2 embedded database server listening port, defaults to 9092
#sonar.embeddedDatabase.port=9092