PrestaShop Forums: Forgotten / Lost Password - Manual Reset via phpMyAdmin - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Forgotten / Lost Password - Manual Reset via phpMyAdmin


Forgotten / Lost Password - Manual Reset via phpMyAdmin

#1 system7

    PrestaShop Newbie

  • 15 Apr 2010
  • Members
  • Pip
  • 1 posts

Posted 15 April 2010 - 08:50 PM

I tried to do this following the instructions here and it kept on failing. I have run into this problem before with a CMS that I created on my own.

I have noticed that when you try and run an md5 through MySQL the result sometimes be different than if you do it via PHP, although you won't notice anything besides failed login attempts with the new password. I think what really happens is that the syntax gets messed up or there are errors between copying and pasting / extra white space characters (ie. there is either a leading or trailing space that you may not notice). By the very nature of running a hash the values should be the same from SQL or PHP, it shouldn't matter.

So after screwing around trying to do it with SQL I went ahead and created a simple PHP script to create the correct hash and it worked.

See attached file for the script... follow the commented instructions.


Good Luck!

Attached File(s)



#2 pjssms

    PrestaShop Apprentice

  • 05 Jul 2009
  • Members
  • PipPip
  • 26 posts

Posted 06 October 2010 - 12:56 PM

I found this somewehre else and it worked.


UPDATE `ps_employee` SET `passwd` = MD5('<_COOKIE_>password') WHERE `ps_employee`.`id_employee` = 1;


Where cookie is from config file and password is the password you want.

#3 dkfranc

    PrestaShop Newbie

  • 26 Jul 2011
  • Members
  • Pip
  • 3 posts

Posted 26 July 2011 - 01:11 PM

The attached file worked perfect. Just follow the instructions given. :rolleyes:

Thanks a lot

#4 RemiB

    PrestaShop Newbie

  • 24 Sep 2011
  • Members
  • Pip
  • 1 posts

Posted 24 September 2011 - 01:07 PM

It worked perfectly for me! Thanks!

View Postpjssms, on 06 October 2010 - 12:56 PM, said:

I found this somewehre else and it worked.
UPDATE `ps_employee` SET `passwd` = MD5('<_COOKIE_>password') WHERE `ps_employee`.`id_employee` = 1;

Where cookie is from config file and password is the password you want.


#5 skipperfoto

    PrestaShop Newbie

  • 16 Oct 2011
  • Members
  • Pip
  • 1 posts

Posted 30 October 2011 - 12:15 AM

THANK YOU!!!!! it works like a charm!

#6 bluswall267

    PrestaShop Newbie

  • 26 Jan 2012
  • Members
  • Pip
  • 1 posts
  • Location:USA

Posted 26 January 2012 - 02:45 AM

I too have lost the password to the admin page. I read the replies but they are too advanced for me. I what is PHPMYADMIN and where can I find it?
My question is this: How do I find or reset the address to go to my admin page?
I would be grateful for any help





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users