Jump to content
  • 0

Database Merging


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Question: Is it possible that I can merge my 2 different server items,accounts and characters?

Can please give me a tips how I can do it?
 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   3
  • Joined:  06/03/12
  • Last Seen:  

Here's an outline of what you have to do:
1. decide which database is the "main" one, and which is being merged into the main one.
2. check the "main" ragnarok databse and find out the highest account_id, char_id, and any other indexs
3. then in the database that you will merge into the "main" one, you need to run queries to increase the account_id, char_id, and any other important indexes.
Example: account_id 2000001 + 3000000 = account_id 5000001
4. do all those queries on each table where `account_id` appears
5. repeat for `char_id`, etc etc (this solves the problem of duplicate indexes)
6. also repeat this for duplicate login names and char names
(ex: if there is a login "test" in your main database, and also a login "test" in the 2nd database
you could run a query to add a 2 to the end of all duplicates --> "test2"
7. and do something similar for duplicate char names
8. now you can just merge that database into your "main" one


http://www.eathena.ws/board/index.php?showtopic=237661&st=0&p=1296053entry1296053

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...