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

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2011, 02:11 PM
secondattack
Sarnak
 
Join Date: Oct 2006
Posts: 29
Default database backup

i need to move my server to another system, what tables do i need to backup to save my players, and custom NPC's?
players to include bots.
Reply With Quote
  #2  
Old 01-27-2011, 07:39 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by secondattack View Post
i need to move my server to another system, what tables do i need to backup to save my players, and custom NPC's?
players to include bots.
You Can save the whole database by typing the following (for mysql);
( the destination after the > is an example. Use what you want)

Code:
mysqldump -uroot -ppassword peq > c:\backup\peq_backup.sql
You can name the sql file what you want. The "peq" is name of your DB.

Also if you want to back up the login, (whatever you named it, peqlogindb or whatever),
just change the name of "peq" to that of the logindb and the destination file name.
Reply With Quote
  #3  
Old 01-27-2011, 08:35 PM
secondattack
Sarnak
 
Join Date: Oct 2006
Posts: 29
Default

resource the whole DB would take a good day or so, where as if i knew what tables the custom NPC i have made where stored it would be much less painful.
Reply With Quote
  #4  
Old 01-27-2011, 09:05 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Have you tried using the command line utilities to do a dump/import? They are very fast compared to trying to dump/import using HeidiSQL or whatever.
Reply With Quote
  #5  
Old 01-28-2011, 11:29 PM
secondattack
Sarnak
 
Join Date: Oct 2006
Posts: 29
Default

i made the dump with navcat, and tried to restore it with the command line "mysql -umyusername -pmypassword peq < mydumpfile.sql" and it ran for about 4 hours before erroring out, looked to be a little more then half way done. again it would seem to me if all i need to back up was say npc type, spawns, and the other one, forgive me i don't have access the DB and don't remember the tables off hand.. it would be much faster and alot less time consuming to just backup and import those tables into a fresh install.. correct me if I'm wrong. i just need to know which table i need to export/import
Reply With Quote
  #6  
Old 01-28-2011, 11:46 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Don't use Navicat to dump it. It uses a format that is horribly slow to restore.

Using the command line to dump and restore the database takes me less than 5 minutes. *shrug*
Reply With Quote
  #7  
Old 01-29-2011, 03:45 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

lerxst2112 is right. I learned the hard way too on my first time, when I
tried using Navicat to backup the database. But since then I have always
used that command line and it takes only a few minutes, whether you are
dumping or restoring.
Reply With Quote
  #8  
Old 01-29-2011, 02:15 PM
secondattack
Sarnak
 
Join Date: Oct 2006
Posts: 29
Default

right on guys thnx for the help.
Reply With Quote
  #9  
Old 09-29-2011, 02:28 PM
bodi
Hill Giant
 
Join Date: May 2010
Posts: 105
Default

When i try to backup the database, I pull up a command prompt, log into mysql by using mysql -uroot -p, then put in my password... then type
mysqldump -uroot -ppassword peq > c:\backup\peq_backup.sql

and it says Error: Unknown command '\b'.

What am I doing wrong?
Reply With Quote
  #10  
Old 09-29-2011, 03:02 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

mysqldump is a separate command line program, just open your command prompt and type the mysqldump command, rather than doing the 'mysql -u root ...' first.
Reply With Quote
  #11  
Old 09-29-2011, 03:14 PM
bodi
Hill Giant
 
Join Date: May 2010
Posts: 105
Default

got error: 1045: access denied for user ODBC'@'localhost' (using password:yes) when trying to connect

when i pull up a command prompt it goes to c:\users\name\ btw
Reply With Quote
  #12  
Old 09-29-2011, 05:37 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

From a command prompt just type:

mysqldump -uroot -ppassword peq > backup.sql

Don't run the mysql command first.
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 01:39 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