Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building 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 04-13-2004, 05:44 AM
Gonkers
Sarnak
 
Join Date: Mar 2004
Posts: 65
Default Back up your db, and have seperate source files!

I'm zipping this file for everyone to have.

there are 2 files (actually 3, but readme.txt does not count)

1) backup.bat

Does just that, backs up your server's database. Then it will exit after it's finished.

2) sqlfull.bat

Will create a folder eqemusource in your C:\ drive and then put all of your source files from database into that folder. Then it will exit after it's finished. What I means by all of your source files, is that it seperates all your db sources 1 by 1. so you'll end up with a folder with all of your db sources..like accounts, characters, npc's..exct.

If you want to learn from it, right click and click edit.

http://www.geocities.com/blisto_games/backup.zip

right click, save file as.
Reply With Quote
  #2  
Old 04-13-2004, 11:28 AM
themushygod
Sarnak
 
Join Date: Feb 2004
Posts: 60
Default

well i never had any problems with just making a complete copy of the mysql/data folder then if i botch a db i just go find it in the copy and paste it back over the now broken one

saved me more then once
Reply With Quote
  #3  
Old 04-13-2004, 11:43 AM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

copy and restore work fine, EXCEPT :
- if u use other filesystem than InnoDB (Mysql storing to files)
- if u change version

Also, just a tip :
it's sometimes a good idea to use --complete-insert when dumping, especially if no table drop/create. This allows to reimport data to database when table column have been added/moved

np, that was just a good idea to point out backup question and provide scripts. Thanks Gonkers [/img]
Reply With Quote
  #4  
Old 04-14-2004, 06:26 AM
Gonkers
Sarnak
 
Join Date: Mar 2004
Posts: 65
Default

Quote:
Originally Posted by themushygod
well i never had any problems with just making a complete copy of the mysql/data folder then if i botch a db i just go find it in the copy and paste it back over the now broken one

saved me more then once
Have no idea what you mean, can you explain future please .
Reply With Quote
  #5  
Old 04-14-2004, 09:02 AM
samandhi's Avatar
samandhi
Demi-God
 
Join Date: Aug 2003
Posts: 1,056
Default

What he is saying is; if you browse your files on your computer you should be able to go to c:\mysql\data (assuming you installed MySQL in the default directory) and simply copy the entire directory and paste it somewhere else. That way, when/if you mess something up, you have a working backup that you can simply copy from the other location BACK to \mysql\data to overwrite the broken parts of that directory (read your DB).....
__________________

Quote:
Analysis paralysis will keep you from failing, but it will also keep you from succeeding.
  • L.L. CoolJ
Reply With Quote
  #6  
Old 04-14-2004, 05:27 PM
Gonkers
Sarnak
 
Join Date: Mar 2004
Posts: 65
Default

ah I see. I find it easier to just backup the whole sql file instead of copying and pasting a folder. I understand what you mean though .
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 10:18 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3