Server Merge

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
PSGB
Posts: 38
Joined: Fri May 29, 2009 2:21 am

Server Merge

Post by PSGB »

I try search on forum, but without sucess.

I have 2 server (low and high). I like merge this 2 server on 1.

How I can make this merge (charId, items etc) without duplicate errors?

Have any script for server merge?

Thx
PSGB
Posts: 38
Joined: Fri May 29, 2009 2:21 am

Re: Server Merge

Post by PSGB »

Nobody?
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: Server Merge

Post by Szponiasty »

PSGB wrote:Nobody?
There's no such thing, or at least not shared publicly. U can do it urself if u know what and how to do (or hire someone to do it for u ;))
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Server Merge

Post by Gnacik »

It's quite simple. on one server make query to update charid and itemid in all tables. check min and max values, if for example charId=charid+100000000 is enough. Then export that db and import to first one, just simple insert without droping table or smth.
kazike
Posts: 19
Joined: Sat Oct 09, 2010 11:19 am

Re: Server Merge

Post by kazike »

Add a number before the ID.

Id's from server high -> 1xxxxxx ("xxxxxx" is the original ID)
Id's from server low -> 2xxxxxx ("xxxxxx" is the original ID)
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Re: Server Merge

Post by Naminator_X_ »

Gnacik wrote:It's quite simple. on one server make query to update charid and itemid in all tables. check min and max values, if for example charId=charid+100000000 is enough. Then export that db and import to first one, just simple insert without droping table or smth.
Actually if both databases are on the same machine its as easy as INSERT INTO (SELECT) ON DUPLICATE KEY update id=id+1 mega easy and this is for every character info table

The bigger issue is with duplicate names and maintaining relativity for items owned by players/warehouse/mails.
It can be done you sure must have a backup and be able to write scripts (php, python, simple java apps etc)
Post Reply