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

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

 
 
Thread Tools Display Modes
  #1  
Old 06-09-2003, 04:06 PM
DuDeMaN
Sarnak
 
Join Date: Jul 2002
Posts: 75
Default a small mysql question

Is there a command to dump say, all of my items or all of my accounts or characters to a .sql file, or text file some how, so i can source them into another db, so everyone doesn't have to start over, and so i don't have to make 29348234 items again?

thanks
  #2  
Old 06-09-2003, 07:27 PM
Zern
Sarnak
 
Join Date: Nov 2002
Posts: 35
Default

open up the command prompt ...

In this example I'm assuming you installed mysql to the C:\ (personally have it on E: but just follow along, replace C: with whatever drive you installed MySQL on)


use cd C:\mysql\bin

once inside the bin folder in the command prompt, type

"mysqldump [table_name] > [Name of new file which will have the dumped information]"


Also just a note about accounts .... if you don't dump the account table and character_ table ... be sure you match up the account ID's in the character_ table with the new account ID's being created in the new database as if you don't, your users are more than likely not going to have the same AccountID if they have to recreate.


-David
  #3  
Old 06-10-2003, 06:23 PM
DuDeMaN
Sarnak
 
Join Date: Jul 2002
Posts: 75
Default sweet

woohoo, thanks alot!!
  #4  
Old 06-11-2003, 06:04 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

You may have to add the database name before the table_name statement :

mysqldump database_name table_name > file.sql

ex:

mysqldump eq character_ > mychars.sql

if u want to compile several tables in the same file, replace > by >>, ie :

mysqldump eq items >> mychars.sql

will add the items after the characters...

Muuss
 


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 02:32 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