Reset Admin Password ver1.02

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Reset Admin Password ver1.02

Post by oklahomawebhost »

Hello, I'm running vers 1.02 Maui. I have a user who lost their admin password, and I've tried resetting it the method that is listed by searching the forums. (use phpmyadmin to either md5 a plain text password, or using a md5 generator and pasting in an already encrypted password). The password (key) does change in phpmyadmin, but no matter what I change it to, I'm not able to login.

There is also only 1 account on this site, which is the admin account.

My question is has anything changed, with the way the admin password is store in mysql in this version? Or is the password stored at a table besides cms_users?

Thanks,

OklahomaWebHost
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Reset Admin Password ver1.02

Post by tsw »

UPDATE cms_users SET password=MD5('newpassword') WHERE user_id=1;

should do the trick...
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Re: Reset Admin Password ver1.02

Post by oklahomawebhost »

no dice?
KoalaBlue
Forum Members
Forum Members
Posts: 39
Joined: Tue Sep 12, 2006 4:23 am

Re: Reset Admin Password ver1.02

Post by KoalaBlue »

Hi,

I don't quite understand the steps above on how to do this - can someone please detail step-by-step instructions, or point me to a page in the online documentation?

Thanks!
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Reset Admin Password ver1.02

Post by tsw »

that is a sql command you run against your database.

open mysql client and select the right database, and check whats your table prefix (in this example it is cms_) and then run that command

UPDATE cms_users SET password=MD5('newpassword') WHERE user_id=1;

I think you can also do this from phpmyadmin, there is a place to run direct sql commands. or just use the edit command of phpmyadmin and set the password to be MD5('newpassword') didnt test this tho...

hope this helps
KoalaBlue
Forum Members
Forum Members
Posts: 39
Joined: Tue Sep 12, 2006 4:23 am

Re: Reset Admin Password ver1.02

Post by KoalaBlue »

Hi TSW,

thanks for this - I can access MySQL through the admin panel of my hosting - I'll have a look there and see what I can do.

Just in case I do something wrong  ??? is there something I should do to backup the database? I have never done this before
pikkabbu

Re: Reset Admin Password ver1.02

Post by pikkabbu »

GREAT !!

thank you so mucho 4 this.

Works fine.

pik
oklahomawebhost
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 03, 2006 11:44 pm

Re: Reset Admin Password ver1.02

Post by oklahomawebhost »

I ended up having to re-install, but I think it turned out to be a database issue that was keeping the admin reset trick through phpmyadmin from working.

Anyways,

We're good :)

OklahomaWebHost
Post Reply

Return to “CMSMS Core”