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.
 
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.
 
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...
 
Back