OsTicket: Reset User Password via SQL: Difference between revisions

From wiki.jacobjohns.com
jwiki>jjohns
Formatting
jwiki>jjohns
Formatting
Line 1: Line 1:
{{DISPLAYTITLE:osTicket: Reset User Password via SQL}}
[[File:OsTicket Logo.png|center|frameless]]
[[File:OsTicket Logo.png|center|frameless]]
# Connect to the osTicket database on the osTicket host.
# Connect to the osTicket database on the osTicket host.
Line 11: Line 12:
#* <code>update _staff set passwd=MD5('NEW_PASSWORD') Where username='USERNAME';</code>
#* <code>update _staff set passwd=MD5('NEW_PASSWORD') Where username='USERNAME';</code>
# Test the logon at the user interface.
# Test the logon at the user interface.
{{DEFAULTSORT:osTicket:_Reset_User_Password_via_SQL}}

Revision as of 07:02, 21 January 2023

  1. Connect to the osTicket database on the osTicket host.
    • sudo mysql
  2. Show databases.
    • SHOW databases;
  3. Use the osTicket database.
    • USE osticket_database;
  4. Show tables and look for _staff.
    • SHOW tables;
  5. Change the password for the desired user.
    • update _staff set passwd=MD5('NEW_PASSWORD') Where username='USERNAME';
  6. Test the logon at the user interface.