Techridez
VirtualizationLinuxWindowsNetworking
  • Techridez Knowledge base
  • Techridez guide
  • Tech Scale
    • Measurements
  • Techridez Knowledge Base
  • Bacis
    • Protocol and Port Numbers
  • Windows Customization
    • Capture Wim image from OS
  • Virtualization
    • Proxmox Command Guide
  • Windows Server Guide
    • Transfer FSMO roles
    • FSMO commands
  • DevOps
    • WebDev
      • How to install fail2ban on ubuntu server and create custom jail config.
      • MySQL Bin Files Eating Lots of Disk Space (fix)
      • Install ClamAV antivirus in Ubuntu Server and Client With Cron job
      • 404 hyperlink not working after wordpress migration
      • Apache Virtual Host Script with mysql db.
      • OsTicket
      • How to Backup MySQL Databases Automatically on Ubuntu
      • Cron Job
        • Create cron job for maldet scanning
        • Auto-Restart MySQL When It Crashes During a Brute Force Attack
        • How to change default crontab editor
        • How To Use Cron to Automate Tasks on Ubuntu 18.04
        • How To Use Cron to Automate Tasks on CentOS 8
      • Wordpress Security
      • Open database Error!: could not find driver linux Fix
    • Vagrant
    • Windows Subsystem for Linux
    • How to set static ip on ubuntu server using yaml file.
    • How to install ansible
  • Linux
    • Tools
    • How to install CrowdStrike in Linux
    • How to Install Ossec agent in linux
    • Linux Commands
    • SFTP (CrushFTP)with HA
    • 🗃️Transfer & sync files in a directory to remote node using crontab & rsync
  • Networking
    • Upgrade Cisco9200L firmware to recommended
  • Cyber Security
    • ISC² (International Information System Security Certification Consortium)
Powered by GitBook

©️ Techridez

On this page

Was this helpful?

  1. DevOps
  2. WebDev

OsTicket

How to rest lost admin password using mysql terminal

First you need acces to VPS

Then login to mysql using

mysql -u root -p

then access your osticket database !

mysql> show databases;
+------------------------+
| Database               |
+------------------------+
| information_schema     |    |
| mysql                  |
| osticket.techridez.com |
| page.techridez.com     |
| performance_schema     |   |
| phpmyadmin             | |
| sys                    |
| vanilla_db             |
+------------------------+
8 rows in set (0.02 sec)

mysql> use osticket.techridez.com

now you have to change database to your's i am using osticket.techridez.com

then use

UPDATE `ost_staff` SET `passwd` = MD5( 'password' ) WHERE `staff_id`='1';

Where ost_staff is your table

password = you need to change with new password

staff_id=1 = 1 use used as admin

UPDATE `ost_staff` SET `passwd` = MD5( 'password' ) WHERE `staff_id`='1'; 
PreviousApache Virtual Host Script with mysql db.NextHow to Backup MySQL Databases Automatically on Ubuntu

Last updated 5 years ago

Was this helpful?