UXWizz
WebsitePricingDemoTwitter (X)
  • Introduction
  • 🛠️ Installation
    • Requirements
      • Limitations
      • Server specs (CPU, RAM)
    • Installation guide
      • Uploading the script
      • Creating a MySQL database
      • Running the installer
    • Install on a new server
      • Ubuntu 20.04 (or higher)
      • DigitalOcean
    • Docker
      • Via Docker Compose
      • Standalone Docker image
    • Adding the tracking code
      • Automatic SPA pageview tracking
      • Add tracker to Next.js App
      • Add tracker to React Router App
    • Optimization tips
      • MySQL/MariaDB
      • Auto-delete old data (cron jobs)
      • Apache
    • Frequently Asked Questions
  • 🔧JavaScript API
    • Tags
    • Events
    • Hooks/callbacks
    • Other API functions
    • Session Recording
      • Ignore specific elements
  • 📖Guides and features
    • Goals (NEW!)
    • Ask AI (NEW!)
    • Basic usage
    • A/B testing
    • Usage tips
    • Dashboard user access level
    • Resetting the admin password
    • Database querying
    • Technical details
      • IP Geolocation
    • Troubleshooting
      • Agency
        • MultiDB
      • Dashboard
        • Refreshing dashboard sub-page leads to 404 error
        • Website iframe not loading (x-frame-options)
        • License says "invalid"
        • Updating Fails
      • Tracking
        • No data is being recorded
        • Can't include tracker via Google Tag Manager
        • The A/B test JS file is missing
      • WordPress
        • Cloudways 403 Forbidden screen on WordPress
        • NGINX 403 Forbidden screen on WordPress
    • Extending the dashboard
    • Support
    • Migrating to a new server
  • 🎓Useful Examples
    • Feedback form (polls)
    • Tracking 404 Pages
    • Tracking UTM parameters
    • Tracking Google Ads GCLID
    • Storing user device types
    • Track video playback
  • 📜About
    • Changelog
    • Personal Data Information
    • Privacy Policy (uxwizz.com)
    • Licenses and pricing
    • [Deprecated] License Subscriptions
Powered by GitBook
On this page
  • Steps to reset the password:
  • A. Using the MySQL console
  • B. Using PHPMyAdmin:

Was this helpful?

  1. Guides and features

Resetting the admin password

PreviousDashboard user access levelNextDatabase querying

Last updated 4 years ago

Was this helpful?

If you no longer remember the admin password the only way to reset it is by changing it in the database.

For security purposes the password is stored in the database SHA256 encrypted and uses an unique salt per user.

Steps to reset the password:

A. Using the MySQL console

You can set a new password for the admin user using this MySQL query:

UPDATE ust_users SET password=SHA2(CONCAT(salt, 'NEW_PASSWORD'), 256) WHERE id=1;

Make sure to replace NEW_PASSWORD with your actual password. If you want to reset the password using this command for a different user, you can change the "WHERE" statement to name=username.

B. Using PHPMyAdmin:

1. Access the ust_users table in your database.

2. Copy the contents of the salt column from the admin user.

3. Decide on your new password, and prefix it with the salt: saltMyNewPassword123

4. Encrypt the salt+password as SHA256.

You can use an .

5. Save that encrypted value in the password field.

Example:

So let's say the salt in the DB is f57efb9fa449 and you want your new password to be XXXyyyZZZ

You concatenate them: f57efb9fa449XXXyyyZZZ

Get the sha256 encrypted value using the site linked above: 7ABE3FCED2D3A6FD77D4D703C3C24B6D1634B4F351380C0154A6ECA64AAE3EA4

Save the above hash in the password column of the admin user in the database:

📖
online SHA256 encryption tool like this