Modify the default administrator password
Change the default administrator password manually
You can manually change the administrator password from the command line by following these steps:
- Log in to the server console.
- Obtain your database credentials. Learn how to find database credentials.
Load the Bitnami SonarQube environment before connecting to your database server:
$ sudo /opt/bitnami/use_sonarqube
Once you have obtained the database credentials and loaded the environment, you should be able to connect to the MySQL server in order to change the administrator password. To do so:
Access the database by executing the following command:
$ mysql -u root -p bitnami_sonarqube
You will be prompted for your current database password.
Execute the following command. It will change your application administrator password. Remember to replace NEW_PASSWORD with the password you wish to set as default.
mysql> UPDATE users SET crypted_password=SHA1(CONCAT('--', salt, '--', 'NEW_PASSWORD', '--')) WHERE id='1';
Now, you should be able to access your application using the new password.
Change the default administrator password from the SonarQube dashboard
You can change the administrator password from the SonarQube dashboard by following these steps: