Skip to content

Instantly share code, notes, and snippets.

@riteshgurung
Created January 25, 2023 09:02
Show Gist options
  • Save riteshgurung/3f78846db21940b80c87d10fa1842c2c to your computer and use it in GitHub Desktop.
Save riteshgurung/3f78846db21940b80c87d10fa1842c2c to your computer and use it in GitHub Desktop.

If you ever lost the sonarqube admin password, here is an easy hack to reset it.

Run the following query

update users 
set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi', 
    salt=null, 
    hash_method='BCRYPT' 
where login = 'admin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment