Reset localhost user and pw

Hi @hengkiry

Welcome to the DHIS2 Community! When you installed the DHIS2 instance as a localhost, did you use the Sierra Leone demo database or an empty database? You could simply seed the database again (if it’s still an empty database or if it’s only a demo database).

However, if you have already made other changes and need to regain access, would you please try to follow the following steps (taking note of the points I will mention bellow):

  1. Instead of using UPDATE USERS SET password = ‘001122hashgoeshere221100’ WHERE username = ‘admin’; use UPDATE USERS SET password = ‘001122hashgoeshere221100’ WHERE username = ‘admin’;
  2. If you don’t remember the username, you can use SELECT username FROM userinfo to list all the usernames

I hope this helps. Please do post an update after trying the above.

Thanks!