Help! Lost Password, what can I do!?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
edward

Help! Lost Password, what can I do!?

Post by edward »

I lost my password and now I can't log in (obviously).

Is there any way I can get it back? I am the admin of the website so I do have access to all the files/ mysql

please help thanks
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Re: Help! Lost Password, what can I do!?

Post by tomsommer »

edward wrote:I lost my password and now I can't log in (obviously).

Is there any way I can get it back? I am the admin of the website so I do have access to all the files/ mysql

please help thanks
go to the _authors table in your database and do

UPDATE {prefix}_authors SET password = md5('mynewpass') WHERE id = {authorid}
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
edward

Post by edward »

thanks!
JimBob

Post by JimBob »

Hi,

I am locked out and my login I have been using for months suddenly won't work. I looked in the database and the username for authorid 1 is "admin" which is not what I set it as. Anyway I run the sql you said and get the following: (I tried as it was posted and kept getting an error near '{prefix}authors untill I changed it)

UPDATE serendipity_prefixauthors SET PASSWORD = md5( 'a3m2i6c8o4m' ) WHERE id = {1}
MySQL said:
#1064 - You have an error in your SQL syntax near '1}' at line 1

I have tried every combination I can logically think to try and nothing works.

What is wrong please?

Thanks in advance for your help.

JimBob
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

UPDATE serendipity_authors SET PASSWORD = md5( 'a3m2i6c8o4m' ) WHERE id = 1
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
Post Reply