A few SQL commands

Newbie Spellweaver
Joined
Jun 21, 2008
Messages
95
Reaction score
3
Code:
update `accounts`
set banned = 0
where id = 1;
delete from `ipbans`
where ip = '/127.0.0.1';
delete from `macbans`
where mac = '00-00-00-00-00-00';
This one basically unbans an account, ip address, and mac address.
Replace the /127.0.0.1 with their ip address, keep the / or it will not work. Replace the 00's with their mac address.
Oh, and replace the id with the id in the accounts table.
Credits to me :D
Code:
update `accounts`
set gm = 1
where id = 1;
update `characters`
set gm = 1
where accountid = 1;
This makes 1 account and 1 character a GM, good for people who have GM CPs on their websites.
Just get the id that you want and change the 1 to anything.

Let me know if you need a SQL script made, i'd be happy to help.
 
Skilled Illusionist
Loyal Member
Joined
Jun 27, 2008
Messages
391
Reaction score
12
Re: [Small Release]Unban SQL command

This unbans everyone though.
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
95
Reaction score
3
Re: [Small Release]Unban SQL command

It unbans one person, their ip address, and their mac address, i just tested it.
 
Skilled Illusionist
Loyal Member
Joined
Jun 27, 2008
Messages
391
Reaction score
12
Re: [Small Release]Unban SQL command

It unbans one person, their ip address, and their mac address, i just tested it.
Lol, I didn't see the ID part.

nice rls
 
Initiate Mage
Joined
Apr 4, 2008
Messages
3
Reaction score
0
Re: [Release]A few SQL commands

how about deleting accounts with no character in it?
 
ツ
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
Re: [Release]A few SQL commands

i already made a post with both of these in it...lol

And more
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
95
Reaction score
3
Re: [Release]A few SQL commands

I created these dude... I haven't seen these anywhere
 
Junior Spellweaver
Joined
Apr 20, 2008
Messages
123
Reaction score
0
Re: [Release]A few SQL commands

I created these dude... I haven't seen these anywhere

"created"?
You created the mysql command "UPDATE `table`" and others?

The first one has been done on mike's thread, and it is not a copy paste of yours.
The second one has also been done, not by you.
 
Newbie Spellweaver
Joined
Jun 21, 2008
Messages
95
Reaction score
3
Re: [Release]A few SQL commands

I didn't exactly "create" but I made them from scratch without any help, and I'm not that good with MySQL commands so I thought I should put them up for other people...
 
Mythic Archon
Loyal Member
Joined
Jul 23, 2008
Messages
796
Reaction score
56
Re: [Release]A few SQL commands

wow you bumped this thread with an edited message?
Yeah this is old.
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]A few SQL commands

WTH who bump this thread lol. It's very old ready
 
Back
Top