Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::General > Archive::General Discussion

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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2002, 08:54 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default Any way of exporting/saving character data?

Is there an easy way (using mysql) to export the DB character data to a file then import it back later? I'm often having to re-import the DB due to changes and bugfixes with world data etc. but it's annoying to lose all my characters when I do so. I'm currently trying to play the game properly starting with a level-1 character (a good way of checking that loot, merchant lists etc. are balanced) so this would be very useful. I don't really have much experience with the MySQL command line interface however.
Reply With Quote
  #2  
Old 03-08-2002, 09:13 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

You can use mysqldump.exe to dump just the tables you want, or I found a great tool for managing mysql: DBTools I would subbest that you just write a query to copy the info you want to/from another backup database.

Edit: Use this command line command to backup your account and character data (run from the mysql\bin directory)
Code:
mysqldump.exe -t eq23 account character_ > backup.sql
where:
eq23 = database name
account = 1st table to output
character_ = 2nd table to output
backup.sql = output file for data

Add more tables if you want.

then use:
Code:
mysql.exe -f eq23 < backup.sql
to restore the data
Reply With Quote
  #3  
Old 03-09-2002, 05:10 AM
DaRacne Shaitan
Fire Beetle
 
Join Date: Mar 2002
Posts: 21
Default

Something else that I do that is REALLY helpful is I run Apache with PHP on my computer, which is pretty easy to set up even for a first time user. Then I just run PHPMyAdmin, that tool is extremely useful, lets you empty tables, drop tables, ect. withouting having to know the commands. Pretty much like a HTML version of a GUI =P But if you don't want to do all that. then I would just set it up the way Lurker said.
__________________
-DaRacne Shaitan
Reply With Quote
  #4  
Old 03-09-2002, 07:44 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default

Thanks, that information on mysqldump was really helpful, it seems to work fine (I haven't tried re-importing yet, but will know whether it works the next time I do a DB reset ). I already have DBTools but found that it always truncated the binary "blob" data from the character table when I tried to export it.
Reply With Quote
  #5  
Old 03-09-2002, 11:20 AM
Baron Sprite's Avatar
Baron Sprite
Dragon
 
Join Date: Jan 2002
Posts: 708
Default

or if your lazy, just copy the character_.myi and myd files ( don't remember exact, the 2 other then frm) from your mysql/data/currentdb/ folder. I'm lazy
Reply With Quote
  #6  
Old 03-10-2002, 04:00 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Lol, forgot about that posability Baron. Do you need to stop and restart mysql when you copy the files back?
Reply With Quote
  #7  
Old 03-10-2002, 07:00 AM
Baron Sprite's Avatar
Baron Sprite
Dragon
 
Join Date: Jan 2002
Posts: 708
Default

I've never had too
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 12:37 PM.


 

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