If you have lost your Joomla administrator password and cannot log into the backend, you can reset it directly in the database using phpMyAdmin. No email recovery is needed.
Reset via phpMyAdmin in 3 steps
Open phpMyAdmin in cPanel, find the #__users table in your Joomla database, and update the password hash for your admin account. Full SQL query below.
01. Reset via phpMyAdmin
- Log into cPanel > Databases > phpMyAdmin
- Select your Joomla database from the left sidebar (check
configuration.phpin your Joomla root for the database name if unsure) - Click the SQL tab and run this query:
UPDATE #__users SET password = MD5('NewPassword123')
WHERE username = 'admin';
Replace #__ with your actual Joomla database table prefix (the default is jos_ for older versions or a random prefix for newer installations). Replace NewPassword123 with your desired password. Replace admin with your admin username if different.
Open configuration.php in your Joomla root directory and look for the $dbprefix variable. This tells you what prefix your tables use (e.g., jos_, jml_, or a random string like abc12_). Your users table will be named [prefix]users.
02. After Resetting
- Log into Joomla admin at
yourdomain.com/administrator - Enter the username and your new password
- Immediately change the password again through the Joomla admin interface (Users > Manage > click your user > set a proper password). The MD5 hash we used above is a legacy format. Joomla will automatically upgrade it to a secure bcrypt hash when you change it through the admin panel.
The MD5 method above is a quick workaround for password recovery. MD5 is not a secure hashing algorithm. Always change the password again through Joomla's admin interface immediately after logging in, so Joomla stores it with its proper password hashing.
03. Alternative: Create a New Admin User
If you cannot find your admin username, you can insert a new super admin user via SQL. This is more complex and version-dependent. Check Joomla's official documentation for the correct INSERT statement for your version.
For other CMS password resets: WordPress has a built-in "Lost your password?" link on the login page that sends a reset email. phpMyAdmin can be used for direct database edits on any CMS.
Locked Out of Your Site?
If you cannot reset the password yourself, open a ticket and we can help.
Open a Support TicketQuick Recap
- Open phpMyAdmin in cPanel
- Run the UPDATE query on the users table with an MD5 password
- Log in and change the password again through Joomla's admin panel
- Check configuration.php for your database name and table prefix
- MD5 is temporary - Let Joomla upgrade it to a secure hash
CMS password recovery · Last updated March 2026 · Browse all PHP Scripts articles
