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 | [[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

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