Special Offer: Get 25% OFF your first order! Use code: WELCOME25
RETURN TO FORUM

Resetting forgotten MySQL root password safely

POSTED BY: database_wizard ACTIVE_MEMBER POSTED ON: Jun 08, 2026 CATEGORY: GUIDE
I forgot my MySQL root password. How do I recover it or reset it through the panel scripts?
6 Total Upvotes

REPLIES (1)

sysadmin_joe ELITE_CONTRIBUTOR SOLUTION_ACCEPTED 2026.06.09 10:50
Run `sudo /usr/bin/php /var/www/php-panel/scripts/fix_db_password.php`. It will safely stop MySQL, start it in safe mode, update the root password with a secure hash, and restart the service.

AUTHENTICATION REQUIRED TO JOIN THIS STREAM.

INITIALIZE LOGIN
Booston Sentinel

👋 Hi there! Have questions about BoostonCP? Chat with us live!

Support Concierge
Sohan Riya Rafsan Jahid Shahariar Islam Rumena

Hi there 👋

How can we help you today? Our specialists and technical architects are standing by.

Send us a message

We typically reply in under a minute

Direct Department Routing
Technical
Server, PHP, Webservers
Billing
Invoices & Renewals
Sales
Plans & Pricing
Migration
1-Click cPanel Transfer
Frequently Asked Questions
How do I install BoostonCP on Ubuntu/Debian?
Can I migrate all cPanel backups without downtime?
How does 1-second Webserver Switcher work?

Booston Support

Support
24/7 Live Support
📷 Drop screenshots here to attach
Support Concierge is typing...

WhatsApp Support

Instant WhatsApp Support

Chat directly with our official technical engineers and sales specialists on WhatsApp.

Start WhatsApp Chat