Skip to content

How to Reset Your Admin User Password

Kyle Gabriel edited this page Jun 30, 2020 · 4 revisions

If you cannot log in to Mycodo because you forgot your password, you have a few options to access your system again. Unless you have another admin account that you can log in and change your other user's password, you're going to have to either A) Delete the admin user from the database then restart the web UI to induce the creation of another admin user, or B) Delete your entire database and restart the web UI to create a new database and initialize the admin user creation page.

A: Delete the current admin user

  1. Download SQLiteStudio
  2. Download your mycodo database at ~/Mycodo/databases/mycodo.db to your local computer
  3. Open the database with SQLiteStudio and delete all admin users in the User table, then save
  4. Upload mycodo.db back to the remote system
  5. Restart the web UI with sudo service mycodoflask restart
  6. Visit your web interface and you will be presented to create a new admin user

B: Delete your database

Note: Deleting your database will mean you will be starting from scratch and will need to add all your inputs, PIDs, etc. again.

  1. Stop the Mycodo daemon with sudo service mycodo stop
  2. Delete your Mycodo database with rm -rf ~/Mycodo/databases/mycodo.db
  3. Restart the web UI with sudo service mycodoflask restart
  4. Visit your web interface and you will be presented to create a new admin user
  5. Start the Mycodo daemon with sudo service mycodo start