How to change or recover Joomla Administrator password

Monday, 24 April 2006

TeachmeJoomla provides you this online recovery tool. This helps you set a new Joomla password for administrator by running SQL code on the database.

This is the Joomla administrator password recovery form.

This generates the sql code to overwrite your Joomla password with a new password typed in this form.

You need to run the generated sql code in PHPMyAdmin or your favorite MySQL interface.

We do not save or give away these passwords.This is Javascript code and it runs on your own machine.

Any questions are welcome at teachme [at] teachmejoomla[dot] com. Enjoy!

New password:

Database prefix (taken from $mosConfig_dbprefix in configuration. php).

Usual values are 'jos_' for Joomla and 'mos_' for Mambo respectively, whithout the quotes:

Click on the image to enlarge

Run sql using PHPMyAdmin
Run sql using PHPMyAdmin
 



Give us some social love (it really works now)!

Reddit! Del.icio.us! StumbleUpon! Yahoo! Swik!



Comments (52)
RSS comments
1. GREAT GUYS I SOLVE THIS ISSUE!10-04-2007 18:32

Hi I just want to say thank you for this script, because I lose my Pass and I was scared already, not being able to get in to my administrator so, I used the form above and It worked out beautifully  
 
Thanks a lot! 
 
Alex

2. GREAT GUYS I SOLVE THIS ISSUE!13-06-2007 01:02

it did not work for me. 
i copied the generated code but i can't login.

3. Recovering password is not working for m13-07-2007 17:57

Do I need to change the jos_ users 
 
Or does admistrator go in the usernane or do I use the last one created

4. Thank you!02-08-2007 06:34

lol, thank you! Well for beginners like me! It would of been nice to tell us where in phpmyadmin! 
I knew it was sql because of the image above. But i thoyght i had to click on jos_users or something! 
 
Here are step by step instructions. 
1. Make up a password!  
2. Use the password on this site to generate the code, now copy this code 
3. Go to ur hosting provider or cpanel, find ur mysql section.  
4. Then find one of ur databses, and click myphpadmin 
5. Right after u get into ur myphpadmin site click "SQL" 
6. Now paste ur code in main box u see 
7. highligh password on the right, and click go 
8. now go to ur web site,click administrator or ( www.yoursite.com/administrator/) 
9. Type in admin as USERNAME and for the PASSWORD type in the password u provided earlier  
10. press ENTER and u should be in!!

5. Thank you!03-08-2007 22:16

greatest help i have ever received....this script is awesome...keep it up

6. What can i do in case...14-08-2007 18:58

I have to insert that sql code everytime i want to log in my admin panel, theres a worm that got stucked in my site, it was phpbb forum or sth, ive already errased that fake module... by the way im using joomspanish 1.0.13... the SQL works, BUT... this worm keeps resetting my admin user and password, so that makes so annoying redoing all that sql code again! what can i do to change for good my password without having to apply that sql code everytime i have to log in? 
 
 
THANKS! waiting for your replies! 8)

7. Owner/Publisher16-08-2007 06:21

This is a great tool. For whatever reason my password was changed in dBase file. When I decrypted the MD5 encrypted password it came up as nothing.  
 
My only stumbling block was the fact I changed the title administrator name to something else but I kept changing it to the user id. Once I figured out that I needed to use the name I changed the administrator to everything worked fine. 
 
Please keep in mind I have NO SQL knowledge what so ever.  
 
Thanks, 
 
~Dale

8. thanks a lot15-09-2007 03:18

It took me a little while before i got it that there are now super administrators. 
Then it just worked fine. 
Thanks a lot. 
Mark

9. Try this before you give up21-09-2007 18:16

The password is stored in the MySQL database jos_users table password field 
I did this to chang my password 
1. login to control panel 
2. Find ( php my admin ) and click on it 
3. Look for the word ( Databases )click on it 
4. WARNING if you have more then one website on the server you must first fined the one  
the one you want to reset the password on. there ending with (_joomla )(if you need help ask) 
5.find ( jos_users ). To your right in the size section there will be a number with (KiB)ending in blue 
click on it  
6.Now on top look for ( Browse ) Click on it 
7.You can now see all the users and the user names. In the (usertype) finde (super administrator) 
go to its right and click on Edit  
8.copy and past this code over the old code in the password section 
21232f297a57a5a743894a0e4a801fc3 the code means ( admin )the new password  
9 I used the same name for both the username and name  
10. go to login and type the name you used and for the password type in ( admin )

10. Try this before you give up30-09-2007 03:40

Excellent - the other solutions were OK but this was the clearest and neatest. Well done!!

11. Thanks09-10-2007 11:21

Thanks, your programme was of great help as one always forget to write down passwords! 
I am trying to generate passwords automatically for my users, but the generated codes do seem to be recognized when login in. Could you kindly send me the code behind the generation of your code? For your generated password functions correctly? 
Thanks in advance.

12. Thanks13-11-2007 03:54
Cam

doesn't work 
 
not enough instructs for locating issue

13. Mr14-01-2008 09:21

Ive run the querie and now my whole site is down cant connect to the database.... 
 
 
 
HELP HELP :( :( :( :( :( :( :( :( :( :(

14. Awesome16-01-2008 19:39

Thanks for that! nice and easy, you people deserve a pat on the back!

15. Thx!18-01-2008 09:52

Oh thanks so much to YOU my friend. First time installing and everything worked except I couldn't log in! Followed those step by step instructions and VOILA. Code is brilliant. Thx!

16. Thx!18-01-2008 21:47

Can someone recover my password for me. I don't have the first inkling of what to do. I just know how to change things with the joomla program.

17. bugger me it works05-02-2008 07:55

Seriously reccommended if you ever get stuck ! it just works as per the instructions. Nick

18. login as admin08-02-2008 00:40

people trying to login are using the word Administrator as the user name. its not Administrator, its Admin.

19. login as admin12-02-2008 08:46
jc

Thanks a lot for this, and thanks Wazrik for the idiots guide - I needed it!

20. login as admin07-04-2008 04:42
mangoman

ohh yeahhh...very nice...thank you to the makers of this site...saved me from reinstalling joomla

21. super tool20-04-2008 21:42
peter

well done guys - really appreciate your knowledge 
 
peter

22. super tool26-04-2008 10:11

You F'ing rock! I've been locked out of my backend for god knows how long. 
Worked like a charm. Use your brains newbs. Joomla v. 1.5 
 
Thank you!

23. Locked out of backend10-05-2008 06:17

I've been locked out of my backend for over 3 weeks now i've tried everything i found, but still no joy...This is what happens i type in my user and password the screen blinks and im still on the login page no errors nothing i tried this it might work for others http://www.joomlaspan.com/Joomla-SMF-Bridge-Recover-Super-Administrator-Status-after-bad-synchronization.html but that didnt work for me, also tried module recover.php, if someone has an answer i done want to start all over again yes i did a DB backup before this error but the issue is still there.

This works perfectly, and can be used on any database using phpmyadmin not just Mambo and Joomla Cms.. :)

25. OOH Help me..16-05-2008 15:33

i updated the password fro phpmyadmin correctly but i can't login... 
What i have to put in the configuration.php in the var secret field?? 
Any Ideas??? 
 
thanks

26. GENERATED EMPTY PASSWORD!!! Please help!22-05-2008 15:28

I have used your recovery form to change the password, but i have made a big mistake...i have generated and excecuted sql string but i havent type ANY password... so now the password has changed but i have no idea what it is, i have tried empty, typeyournewpasswordhere but nothing roks. 
 
ANY IDEA?  
 
plase help

27. THIS IS THE SQL STRING I HAVE EXECUTED !22-05-2008 15:31

UPDATE jos_users SET password='3e7b906dadf044a086d4db2d48d12ba5' WHERE name='Administrator'; 
 
 
could i get my password from this?

28. @Stas27-05-2008 00:28
Tudor

You need to write a password before generating the sql. You can do it now, it will override the blank password you have set by mistake

29. @Stas08-06-2008 20:01

Hey! 
 
I tried above but thereafter I went to my website freshlightltd.com and it started to say This site is temporarily unavailable. 
 
It just happened right after I pushed the Go button in Sql! Does anyone a way to make this undone? 
 
Thank you so much in advance!:D 
 
Regards, 
Leon

30. THANK YOU09-06-2008 16:24

Seriously.. you're a life saver. Holy cow..  
 
I wish I knew how the password was changed between now and 6.5 hours ago, but this saved me.

31. THANK YOU14-06-2008 09:40

OK I've tried this several times but I am still getting Username and password do not match. 
 
The SQL command was processed correctly.

32. THANK YOU16-06-2008 18:30

After updating password, I still have password incorrect problem

33. Saved Me27-06-2008 05:57

Hello! 
 
I lost my password I know backup backup backup just when I was my vista barf crash However whas able to fixe it with this tutorial god bless. 
Pierre

34. Excellent info01-07-2008 00:20

Thank you for the useful code. I was a able to change my password with no issues. Thanks again!!!

35. Araba resimleri, Modifiye15-08-2008 09:26

it worked ! Awesome, but my login pass changing almost daily, I don't know why? anyone has an idea?

36. Does this work with Jooml 1.5.X?17-08-2008 22:17

Tried and verified the content of the users table and had been changed. However I am nit able to get in as administrator. Maybe Jooml 1.5 needs other changes as well in the configuration.php file? 
 
Emile

37. THANK YOU!19-08-2008 03:26

:grin  
Thanks heaps, it seemed simple but the other help sites I read made it seem hard. Thanks for writing simply and succinctly!

38. A brilliant solution to a major problem19-08-2008 18:45

Superb. I reckon someone locked me out of my site, but this got me back in first time. I'm pretty much a beginner but along with the post above (13) it all worked a treat. 
Thanks!

39. Javascript Code21-08-2008 13:37

Hi, 
Great article. It would be helpful if anybody could send me the script for decryption of password. 
 
Thank you 
 
Regards 
Samira

40. Need help W/ Joomla Admin Login27-08-2008 02:32

Hey I'm not sure if I created a user name and password for joomla admin login. if i did i can't remember the user and pw. howdo i reset my user name and pw?

41. Designer27-08-2008 11:14

Hey Bru  
Thanx a lot for this, much appriciated.  
101 bits score  
jadespear ;)

42. You are big life saver!02-09-2008 22:50

:) Thanks a bunch ! You save countless of life & times.. haha 
 
for those who can't get it to work, try to change 'Administrator' to 'Super Administrator' . 
 
Generated SQL:  
UPDATE jos_users SET password='xxxxxxxxxxxxxx72d6' WHERE name='Administrator'; 
 
Change to:  
UPDATE jos_users SET password='xxxxxxxxxxxxxx72d6' WHERE name='Super Administrator';

43. College of Agriculture Chiplima Alumni08-09-2008 14:55

I had my password. But today it did not work, though it was the same4 password i was using since 1 year. 
I search and found your page. Excelent . I reset the password. Without it i would have suffered a lot. Thank you from my heart.

44. College of Agriculture Chiplima Alumni10-09-2008 14:27

Thanks, I spent ages ignoring this problem and when I finally faced up to trying to fix it, your clear instructions were perfect.

45. College of Agriculture Chiplima Alumni12-09-2008 15:26
deranged

i ran it..it worked, i logged in but now..i see thsi error 
 
Warning: asort() expects parameter 1 to be array, string given in /mnt/w0911/d15/s28/b02e4a6e/www/triniexpressions.com/includes/joomla.php on line 5074 
 
Logout admin 
Trini Expressions / com_admin

46. College of Agriculture Chiplima Alumni12-09-2008 17:02
Tudor

you need to go to site config, error reporting and set it to "Simple"

47. Oak Outdoors14-09-2008 16:05

I've tried the script, I've changed it to 'Administrator' to 'Super Administrator', I've opened up the users and pasted the password numbers generated by the program and still no luck in accessing the administrator panel. Help?

48. Great Fix16-09-2008 21:08

This is a good fix, I did have to read the replies though in order to understand exactly how to do it. Jos_Users could show up differently in your db like in our case it was rwc_users. Great fix though worked like a charm. 
 
Jeremy Thompson 
www.revolutionwebstudios.com

Just patched form Joomla 1.5 to 1.5.7. Can't log in as admin and your routine does not work. 
 
Where can I get help. I will pay.

50. Great Fix27-09-2008 22:05

This tool ROCKS!!!! One of the best joomla assists out there!!!

51. isd05-10-2008 10:03

Hi guys, I was able to reset the password using the form only once. then it accepted my password but said my session had expired so i had to login again. only that time it didn't work. and the form is not working since then.

52. isd: the form worked!05-10-2008 10:23

thanks much. i was changing the bak_users table by mistake.

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Please don't use comments to plug your web site. Links are rel='nofollow'-ed
  • Please refresh the page if you're having trouble with the security image code
Name:
E-mail
Homepage
Title:
Comment:

:) :grin ;) 8) :p
:roll :eek :upset :zzz :sigh
:? :cry :( :x
Code:* Code

Last Updated ( Monday, 24 April 2006 )
 
468x60b

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


Auto tags

joomla password

joomla admin password

change joomla password

joomla administrator password

joomla password recovery

joomla change admin password

joomla admin

reset Joomla password

reset joomla admin password

change joomla admin password

joomla reset admin password

password joomla

joomla database password

joomla lost admin password

lost joomla admin password