Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: 9odaysurvival - syyskuu 09, 2011, 06:06:51 IP

Otsikko: Deleted admin account
Kirjoitti: 9odaysurvival - syyskuu 09, 2011, 06:06:51 IP
I deleted the only admin account on my forum. Powered by SMF 1.1.14 I tried to Query in myphpadmin, but nothing happens.Please help!

Thanks in advance.
Otsikko: Re: Deleted admin account
Kirjoitti: Illori - syyskuu 09, 2011, 06:10:25 IP
what query did you try? what results did you get from it?
Otsikko: Re: Deleted admin account
Kirjoitti: 9odaysurvival - syyskuu 10, 2011, 09:18:17 AP
UPDATE smf_members SET ID_GROUP = '1' WHERE memberName = 'adminsusername'

This is what I tried. Not sure if I am supposed to change anything.
Otsikko: Re: Deleted admin account
Kirjoitti: All Colours Sam - syyskuu 10, 2011, 09:20:09 AP
try changing the adminsusername   with the actual name of your account,  if your account is   9odaysurvival  then  do this query:

UPDATE smf_members SET ID_GROUP = '1' WHERE memberName = '9odaysurvival'

Otsikko: Re: Deleted admin account
Kirjoitti: 9odaysurvival - syyskuu 10, 2011, 09:55:43 AP
Affected rows: 1 (Query took 0.0007 sec)
SQL query:
UPDATE smf_members SET ID_GROUP =  '1' WHERE memberName =  '9odaysurvival'

Tried to login but it says my account is still waiting approval
Otsikko: Re: Deleted admin account
Kirjoitti: ^SITS^ - syyskuu 10, 2011, 10:52:31 AP
I suspect there is a table where you can probably fix that with another database query and update.  Hopefully someone will come along and give you a hand with that.  You have your forum setup that require your new members to activate their account?
Otsikko: Re: Deleted admin account
Kirjoitti: mashby - syyskuu 10, 2011, 11:06:53 AP
I think this might be it:
UPDATE smf_members SET is_activated =  '1' WHERE memberName =  '9odaysurvival'
Otsikko: Re: Deleted admin account
Kirjoitti: 9odaysurvival - syyskuu 10, 2011, 01:28:07 IP
Must be approved by admin. Just changed it to that because of spam.
Otsikko: Re: Deleted admin account
Kirjoitti: Oldiesmann - syyskuu 10, 2011, 01:31:03 IP
Setting the "is_activated" value to 1 will tell SMF that your account has been activated, regardless of the registration settings. That should allow you to login again.
Otsikko: Re: Deleted admin account
Kirjoitti: 9odaysurvival - syyskuu 11, 2011, 04:15:24 IP
Thanks everyone. Got it straightened out. Now I just need to figure out why password reminders are not getting email.