Oops locked out of Joomla!Below is the method I used for a Joomla 1.0x installation, I haven’t tried it on a 1.5x install, but a few resources I have read from for 1.5x confirm the process is the same. You will not be able to recover an existing password, but you will be able to reset the password to one of your choice.
By using mySQL’s built in MD5 function you can run the following SQL query:
UPDATE `jos_users` SET `password` = MD5( 'new password' ) WHERE `jos_users`.`username` = "admin";
Check that `jos_users` is the correct prefix, if not use `mos_users` in the above code.
Now with any luck using your new administrator details you should be able to log back into the Joomla system.
Looking at some of the Joomla 1.0.x documentation another option is to directly copy a pre-configured MD5 hash password into the Super Administrator account field in the database and then change the password to a stronger one when you log into Joomla next. A few examples are provided below, make sure you copy just the hash content into the field without the ‘password = ‘.
password = “MD5 hash of password”
———————————————————————————
admin = 21232f297a57a5a743894a0e4a801fc3
secret = 5ebe2294ecd0e0f08eab7690d2a6ee69
OU812 = 7441de5382cf4fecbaa9a8c538e76783
Again I haven’t tried this but it makes sense and removes the requirement to run the SQL query in the previous process.