Reset localhost user and pw

Dear all, I am new to dhis2, I installed a localhost on my laptop, I have updated the pw, but i forget it. Is there away to reset both user and password to login again or I need to reinstall the local? thank sin advance

1 Like

Hi Kary, everything can be done again. I understand very little, nonetheless I can tell you that you will always find technical support.

Amalia

1 Like

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!

Thank Gassim, I use my current project to develop in DHIS2. After succesfully customization, I will buy-in mananement team to rollout the DHIS2. Since I just started, I re-install the DHIS2 again. If I face the same situation in the future, I wll apply your guidance. Thanks

1 Like

2 posts were split to a new topic: Issues with data entry and OUs not appearing