[Joomla Tip] How to reset admin password if you lost it?
This is actually a very un-common thing but during our 8 years of experience, we have noticed that many clients forgot/lost their admin password. It's a kind of strange that how you can forgot your website password? It's like you forgot your passkey to unlock your cell phone. LOL :)
But no worries, here are couple of ways to reset the password without calling your webmaster:
Hidden URL Method
In this method, you can reset your admin password using hidden URL which is not directly accessible if Joomla registrations are disabled. Here are the steps doing this:
- Go to front end and open the homepage
- Add "index.php?option=com_users&view=reset" behind the site URL in URL bar
- It will display a password reset form where you can use your username OR email address and password reset link will be emailed to you and that's it!
Now what if you forgot your username and don't have access to your email address that you used for admin? No worries, we have a solution for that as well in next method. It's a bit technical but not complicated.
Geek Method
As mentioned earlier, this is a bit technical method and hence we call it a geek method and you need to have access of your database for this. So here are the steps:
- Open your database in PHPMYADMIN
- Go to SQL Query and run this query:
"REPLACE INTO `jos_users` (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`, `gid`, `registerDate`, `lastvisitDate`, `activation`, `params`) VALUES ( 62, 'Administrator', 'admin', 'This email address is being protected from spambots. You need JavaScript enabled to view it. ', '5f4dcc3b5aa765d61d8327deb882cf99', 'Super Administrator', 0, 1, 25, '2005-11-22 00:31:11', '2005-11-26 22:05:38', '', 'editor=');" - Be sure to replace in your query jos_ by your suffix table and the right email address,
- And that's it. Once this query runs successfully, password reset is done successfully and you should be able login with admin as username and password as password