Tuesday, January 20, 2015

Recovering joomla password

SQL code for use with Joomla 2.5 and 3.1
INSERT INTO `jos31_users`
   (`name`, `username`, `password`, `params`)
VALUES ('Administrator2', 'admin2',
    'd2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');
INSERT INTO `jos31_user_usergroup_map` (`user_id`,`group_id`)
VALUES (LAST_INSERT_ID(),'8');
 
Then log in with username admin2,password secret then change password immediately 
 
NB:
Make sure you match your db table prefix!