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 02-13-2003, 09:44 AM
Lodan
Fire Beetle
 
Join Date: Feb 2003
Posts: 21
Default Backing up the database

Can anyone tell me how I can easily backup the database before I make changes.

Thanks
Reply With Quote
  #2  
Old 02-13-2003, 11:35 AM
eqfoobar
Fire Beetle
 
Join Date: Feb 2003
Posts: 16
Default

Go to the mysql\bin directory from a command prompt window.

Type mysqldump <put your database name here> > somefilenameyoulike.SQL

Example. If my database was named eq and the file I wanted it put in was myeqdatabase.sql - I would type:

mysqldump eq > myeqdatabase.sql

(note:check the file and make sure the contents are there and not some error text).

To restore it, you would go into a mysql prompt.
Drop your existing database with: drop database <yourdatabasename>;

Create the database again: create database <yourdatabasename>;

and then source the database with your file...
use <yourdatabasename>;
source <path to somenameyoulike.sql>somenameyoulike.sql

Note, you can always restore it to a newly created database and change your db.ini file to point to the newly created database allowing you to experiment with multiple databases.

For more help, check the mysql documentation on these commands.

- foobar
Reply With Quote
  #3  
Old 02-13-2003, 09:27 PM
Lodan
Fire Beetle
 
Join Date: Feb 2003
Posts: 21
Default

Thanks for that.
I'll give it a go over the wekend.
Reply With Quote
  #4  
Old 02-14-2003, 10:35 AM
IACryogenic
Fire Beetle
 
Join Date: Feb 2003
Posts: 5
Default

If i was to ammend the database in any way would i need to remove the old one first ?
Reply With Quote
  #5  
Old 02-14-2003, 10:46 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

I would remove any filename you are about to export to before you export to it.
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 03:58 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