MyBB Tutorials

Unban Yourself

Submitted by iHydra, , Thread ID: 9011

Thread Closed
iHydra
Closed Account
Level:
0
Reputation:
3
Posts:
232
Likes:
12
Credits:
27
17-08-2015, 07:48 AM
#1
Suppose you are only admin and you've banned yourself, then?
Freaky, but accident happens ...

Go to your hosts control panel and launch phpMyAdmin.

Run the following commands:
Code:
DELETE FROM mybb_banned WHERE uid=1

next ...

Code:
UPDATE mybb_users SET usergroup=4 WHERE uid=1


You are unbanned and assigned to admin again!!!



Note:

Assuming your UID is 1 (default for first member : admin).

Assuming your database table prefix is mybb_ (default), if not, change what is.

Assuming your usergroup is 4 (default for Administrators), if not, change what is.




Credits to original creator
2

RE: Unban Yourself

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
20-08-2015, 10:00 PM
#2
Will this also work if someone breaks into your forum and bans you? and where do i have to run the command? (Sorry for noob question)

RE: Unban Yourself

Faded
Legend
Level:
21
Reputation:
215
Posts:
10.2K
Likes:
1.12K
Credits:
15K
20-08-2015, 10:26 PM
#3
20-08-2015, 10:00 PM
redd Wrote:
Will this also work if someone breaks into your forum and bans you? and where do i have to run the command? (Sorry for noob question)

It's a MySQL query, you need to run it in phpmyadmin, or if you're using a VPS, just login to your MySQL database.

As far as a I know, no one can ban a superadmin (the owner of the forum).
Without critical changes to the forum that is.
[Image: InZ3hGx.png]

RE: Unban Yourself

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
20-08-2015, 10:41 PM
#4
20-08-2015, 10:26 PM
Faded Wrote:
20-08-2015, 10:00 PM
redd Wrote:
Will this also work if someone breaks into your forum and bans you? and where do i have to run the command? (Sorry for noob question)

It's a MySQL query, you need to run it in phpmyadmin, or if you're using a VPS, just login to your MySQL database.

As far as a I know, no one can ban a superadmin (the owner of the forum).
Without critical changes to the forum that is.

Ah thanks man sadly enough they did manage to ban superadmin :(

RE: Unban Yourself

Faded
Legend
Level:
21
Reputation:
215
Posts:
10.2K
Likes:
1.12K
Credits:
15K
20-08-2015, 10:51 PM
#5
20-08-2015, 10:41 PM
redd Wrote:
20-08-2015, 10:26 PM
Faded Wrote:
20-08-2015, 10:00 PM
redd Wrote:
Will this also work if someone breaks into your forum and bans you? and where do i have to run the command? (Sorry for noob question)

It's a MySQL query, you need to run it in phpmyadmin, or if you're using a VPS, just login to your MySQL database.

As far as a I know, no one can ban a superadmin (the owner of the forum).
Without critical changes to the forum that is.

Ah thanks man sadly enough they did manage to ban superadmin :(

Are you sure it was an superadmin? Superadmins are in the config file, and as far as I'm aware, there can only be one.
[Image: InZ3hGx.png]

RE: Unban Yourself

redd
Active Member
Level:
0
Reputation:
-1
Posts:
363
Likes:
9
Credits:
60
20-08-2015, 11:01 PM
#6
20-08-2015, 10:51 PM
Faded Wrote:
20-08-2015, 10:41 PM
redd Wrote:
20-08-2015, 10:26 PM
Faded Wrote:
20-08-2015, 10:00 PM
redd Wrote:
Will this also work if someone breaks into your forum and bans you? and where do i have to run the command? (Sorry for noob question)

It's a MySQL query, you need to run it in phpmyadmin, or if you're using a VPS, just login to your MySQL database.

As far as a I know, no one can ban a superadmin (the owner of the forum).
Without critical changes to the forum that is.

Ah thanks man sadly enough they did manage to ban superadmin :(

Are you sure it was an superadmin? Superadmins are in the config file, and as far as I'm aware, there can only be one.

Yes it was a superadmin and when i tried logging in it said i was banned. but i think they banned my ip though

RE: Unban Yourself

Cexx
Junior Member
Level:
0
Reputation:
0
Posts:
81
Likes:
10
Credits:
106
10-09-2015, 05:00 PM
#7
I am 99% MyBB makes you (the owner) prone to being banned. The first account that you sign up anyway with MyBB in the install configuration page on a fresh install.

RE: Unban Yourself

H
y u so shit
Level:
0
Reputation:
91
Posts:
4.07K
Likes:
145
Credits:
5.54K
10-09-2015, 05:42 PM
#8
I've done this before ahaha, I deleted myBB and started it again... Thank god it was just localhost haha.
The Pengest Turkey

[Image: The-Chicken-Connoisseur-PENGEST-TURKEY-1-1.gif]

RE: Unban Yourself

DP_PN
Novice
Level:
0
Reputation:
0
Posts:
45
Likes:
2
Credits:
1
16-09-2015, 01:56 PM
#9
I guess this may come in handy, thanks for taking the time to writing it. I'll save it to my tutorials folder - may need it in the future Tongue

RE: Unban Yourself

Joseahfer
Novice
Level:
0
Reputation:
0
Posts:
39
Likes:
4
Credits:
41
16-09-2015, 07:36 PM
#10
Thanks for this trick! (:

Users browsing this thread: 1 Guest(s)