Register for your free account! | Forgot your password?

You last visited: Today at 17:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Database cleanup

Discussion on Database cleanup within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 2
Received Thanks: 0
Database cleanup

Hey guys,
is it possible to clean up several databases with a simple script? For example i want to clean the user_character, user_bag and so on but my character entry should remain.
fry92 is offline  
Old 08/10/2011, 19:33   #2
 
falloutRO's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 165
Received Thanks: 10
yes it is i well sher it 4 you copy and past it and u well delet all the acc just add it on Query Analyzer


use account;
DELETE FROM C_IP_BAN;
DELETE FROM C_IP_PERMIT;
DELETE FROM C_IP_PWD;
DELETE FROM C_LOGINIPBLOCK_LOG;
DELETE FROM C_SEQUENCE;
DELETE FROM CP_USER_PROFILE;
DELETE FROM MB_USR_IP;
DELETE FROM MB_USR_PUN;
DELETE FROM Tbl_user;
DELETE FROM USER_CONNLOG_KEY;
DELETE FROM USER_PROFILE;
GO
use billing;
DELETE FROM bl_error_log;
DELETE FROM c_sequence;
DELETE FROM dba_online_daily;
DELETE FROM dba_online_daily_notok;
DELETE FROM Tbl_KeepId;
DELETE FROM user_account;
DELETE FROM user_account;
DELETE FROM user_charge_log;
DELETE FROM user_everyday_use_info;
DELETE FROM user_give_log;
DELETE FROM user_use_log;
DELETE FROM user_use_log_bk;
GO
use cash;
DELETE FROM bl_error_log;
DELETE FROM Tbl_Cash_zj;
DELETE FROM user_cash;
DELETE FROM user_charge_log;
DELETE FROM user_use_log;
GO
use character;
DELETE FROM C_EVENT_ITEM_OP
DELETE FROM c_restword;
DELETE FROM char_connlog;
DELETE FROM CHAR_CONNLOG_KEY;
DELETE FROM DEL_USER_CHAR_LIST;
DELETE FROM DEL_USER_CHAR_LIST_SECEDE;
DELETE FROM GM_ITEM_MST;
DELETE FROM GUILD_CHAR_INFO;
DELETE FROM GUILD_INFO
WHERE guild_code NOT LIKE 'MASTERCODE';
DELETE FROM GUILD_INFO_SECEDE;
DELETE FROM GUILD_PEERAGE
WHERE guild_code NOT LIKE 'MASTERCODE';
DELETE FROM MSSNGR_CHAR_LIST;
DELETE FROM SIEGE_INFO;
DELETE FROM SIEGE_RESULT_LOG;
DELETE FROM user_bag
WHERE character_no NOT LIKE 'DEKARON_000001';
DELETE FROM user_bag_copy;
DELETE FROM user_bag_secede;
DELETE FROM user_character
WHERE character_no NOT LIKE 'DEKARON_000001';
DELETE FROM user_character_secede;
DELETE FROM USER_POSTBOX;
DELETE FROM USER_POSTBOX_SECEDE;
DELETE FROM User_Quest_Doing;
DELETE FROM user_quest_doing_secede;
DELETE FROM User_Quest_Done;
DELETE FROM user_quest_done_secede;
DELETE FROM user_skill
WHERE character_no NOT LIKE 'DEKARON_000001';
DELETE FROM user_skill_secede
DELETE FROM user_slot
WHERE character_no NOT LIKE 'DEKARON_000001';
DELETE FROM user_storage;
DELETE FROM user_storage_copy;
DELETE FROM USER_STORE;
DELETE FROM USER_STORE_copy;
DELETE FROM USER_STORE_SECEDE;
DELETE FROM user_suit
WHERE character_no NOT LIKE 'DEKARON_000001';
DELETE FROM user_suit_copy;
DELETE FROM user_suit_secede;
GO
falloutRO is offline  
Thanks
1 User
Old 08/10/2011, 21:09   #3
 
elite*gold: 0
Join Date: Apr 2009
Posts: 2
Received Thanks: 0
Thank you for the code but i want to keep my added acc and character. Where do i have to add that or isnt that possible?
fry92 is offline  
Old 08/11/2011, 01:35   #4
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
yes, you just gotta remove some of the codes. I did it for you, just execute this code in query analyzer. After that "Cash" & "Billing" databases will be wiped, but "Account" & "Character" will be left.

use billing;
DELETE FROM bl_error_log;
DELETE FROM c_sequence;
DELETE FROM dba_online_daily;
DELETE FROM dba_online_daily_notok;
DELETE FROM Tbl_KeepId;
DELETE FROM user_account;
DELETE FROM user_account;
DELETE FROM user_charge_log;
DELETE FROM user_everyday_use_info;
DELETE FROM user_give_log;
DELETE FROM user_use_log;
DELETE FROM user_use_log_bk;
GO
use cash;
DELETE FROM bl_error_log;
DELETE FROM Tbl_Cash_zj;
DELETE FROM user_cash;
DELETE FROM user_charge_log;
DELETE FROM user_use_log;
BioNicX is offline  
Old 08/11/2011, 01:50   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 25
Received Thanks: 9
Quote:
Originally Posted by fry92 View Post
Hey guys,
is it possible to clean up several databases with a simple script? For example i want to clean the user_character, user_bag and so on but my character entry should remain.
Why not just use a clean db and remake your char!? o-o
ChineseBoy168 is offline  
Old 08/11/2011, 02:22   #6
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
Quote:
Originally Posted by ChineseBoy168 View Post
Why not just use a clean db and remake your char!? o-o
alot of reasons why, maybe he has a lot of important characters, maybe he owns a server with players info..etc.
BioNicX is offline  
Old 08/11/2011, 09:48   #7
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
Quote:
Originally Posted by falloutRO View Post
yes it is i well sher it 4 you copy and past it and u well delet all the acc just add it on Query Analyzer
You share it? Isn't that the exact same code that I came up with over a year ago?
Zombe is offline  
Thanks
1 User
Old 08/11/2011, 15:34   #8
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
Quote:
Originally Posted by Zombe View Post
You share it? Isn't that the exact same code that I came up with over a year ago?
I think so, maybe he just posted whats inside yours.
BioNicX is offline  
Reply


Similar Threads Similar Threads
Shaiya Server Weekly Cleanup
06/21/2011 - Shaiya Private Server - 4 Replies
I am not a professional . I am newbie and still learning something . But I love this things I lot . I know every Shaiya version in every country closed doors for server maintanence . What is this ? Cleanup or other things ? If this is yes or others I want to know . If this is cleanup I want to know how to make this :) Thanks for the every help .
[SQL Question]Database cleanup
03/03/2011 - Dekaron Private Server - 9 Replies
so i am trying to perform my own databse cleanup(as i and about 4 other people have already mad a char with the existing db) but everytime i try to delete all account but ours they are all gone...i know verry little about SQL but this should be pretty simple should it not...this is what query i am running on the account database: delete * from tbl_user where user_no<>firstnumber or user_no<>secondnumber or user_no<>thirdnumber or user_no<>fourthnumber but all accounts are gone even the...
Cleanup?
04/04/2008 - Dekaron - 8 Replies
Can we request a cleanup of the 2moons hack sections, or maybe just a thread that lists current working hacks for the BMR patch, so we dont have to go searching everywhere in the planet for them if/when they are created and released. Just an idea.
Forum cleanup
06/13/2006 - Conquer Online 2 - 24 Replies
I was wondering, who else would like the forums to be cleaned up, basicaly all posts reset, we can pin the new bots, I cant find anything I look for so I know its the same for everyone else. So maybe we could let the Epvpers vote on a forum reset, then repost bots. We can tell by Karma who posted what bots before so noone steals credit ^^



All times are GMT +1. The time now is 17:13.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.