Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-17-2003, 01:32 AM
nadineemu's Avatar
nadineemu
Sarnak
 
Join Date: Apr 2003
Location: UK
Posts: 61
Default import new database without nuking existing chars?

is there away to update the world database without nuking the existing characters?
__________________
me version 1.2
~ No place like home Server Controller~
Reply With Quote
  #2  
Old 12-17-2003, 01:39 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

yep.
extract the existing chars, and ressource them after. this has been covered yet several times.

See Arkaria's sig.
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #3  
Old 12-17-2003, 02:44 AM
Conan
Hill Giant
 
Join Date: Oct 2003
Posts: 145
Default

The command to dump the accounts and chars are as follows

c:\

mysqldump -u root databasename tablename > sqlfilename.sql

Make sure that you dump the character_ , Accounts, and inventory.
Reply With Quote
  #4  
Old 12-17-2003, 03:34 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

or, if you dont want to dump tables, this is what I do:

for each new db / code i use, i thusly name my db to something similar: (if using 5.3DR1) I create a db named 'eq53dr1'

so, if you had your current db (we'll just call it 'currentdb') and you wanted to upgrade... just create a new db (we'll call it 'newdb') and source in the new db.

then type

REPLACE INTO newdb.account SELECT * FROM currentdb.account;

the next would be

REPLACE INTO newdb.character_ SELECT * FROM currentdb.character_;

do this for account, character_, and inventory (and 'guilds' if you created any) and it will merge the current data into the new db. As a safe practice you should always have the last previous working db somewhere in a mysql db , so you can use the above method to just 'pull a table over' if you ever mess anything up. This minimizes downtime.

Hope this helped!
Reply With Quote
  #5  
Old 12-17-2003, 11:42 AM
cybermax
Sarnak
 
Join Date: Oct 2002
Posts: 90
Default

I tried that going from MyraDB to MWdb .. Exported my characters from the myradb to mwdb, and the character was equipped when i was looking at him ingame, but in the character sheet, he had no items, and all stats were as if he were nekkid..

Still some changes can happen in the diff databases when it comes to equipment imo.
Reply With Quote
  #6  
Old 12-18-2003, 12:25 AM
nadineemu's Avatar
nadineemu
Sarnak
 
Join Date: Apr 2003
Location: UK
Posts: 61
Default

lovely job, does just what it says on the tin
__________________
me version 1.2
~ No place like home Server Controller~
Reply With Quote
  #7  
Old 12-18-2003, 05:34 AM
omper
Sarnak
 
Join Date: Oct 2003
Posts: 87
Default

hey cybermax.. the reason is the table is different (i think) , at least that was the problem on my server.. i lost all 452 accounts by not checking and making a current backup.. the table didnt import cuz there was either an extra field or was missing one.. cant remember which.. but check that area and you will find your problem..

Omper
Reply With Quote
  #8  
Old 12-19-2003, 03:08 AM
cybermax
Sarnak
 
Join Date: Oct 2002
Posts: 90
Default

I missed the "inventory" table.. when doing this with 4.4 it was enough to backup the "character_" table, but on 5.x you need to backup inventory, sharedbank, faction_values and player_corpses as well..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:13 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3