OsTicket: Reset User Password via SQL: Difference between revisions

From wiki.jacobjohns.com
jwiki>jjohns
Added Logo
jwiki>jjohns
Formatting
Line 1: Line 1:
[[File:OsTicket Logo.png|border|center|thumb]]
[[File:OsTicket Logo.png|center|frameless]]
# Connect to the osTicket database.
# Connect to the osTicket database on the osTicket host.
#* <code>sudo mysql</code>
# Show databases.
# Show databases.
#* <code>SHOW databases;</code>
#* <code>SHOW databases;</code>
# Use the osTicket database.
# Use the osTicket database.
#* <code>USE osticket_database;</code>
#* <code>USE osticket_database;</code>
# Show tables and look for _staff
# Show tables and look for _staff.
#* <code>SHOW tables;</code>
#* <code>SHOW tables;</code>
# Change the password for the desired user.
# Change the password for the desired user.
#* <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.

Revision as of 06:56, 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.