If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Recovering Dump On New Server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-12, 15:05
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Question Recovering Dump On New Server

I had a MySQL 5.1 server completely crash due to hardware issues. We have a new server and I've installed a new instance of MySQL 5.1 and I have the MySQL dump which was created with the --all-databases switch. My question is can I simply just import that dump to the server including the 'mysql' and 'information_schema' databases w/o destroying the new installation?
Reply With Quote
  #2 (permalink)  
Old 01-12-12, 16:13
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by CarlosinFL View Post
... can I simply just import that dump to the server including the 'mysql' and 'information_schema' databases w/o destroying the new installation?
i would exclude them, i think mysql created them automatically when you installed the new server
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 01-23-12, 02:51
salmansyed786 salmansyed786 is offline
Registered User
 
Join Date: Jan 2012
Posts: 3
Recovering Dump On New Server

You can restore the dumps.
In Windows : Press windows+R => cmd

Use the following command to restore the dumps:

c:\>mysql -u < mysql user > -p< mysql password > -D <database name> < <filename of dump>

Ex: c:\>mysql -u root -p -D information_schema < mydump.dat

Check out My Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On