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 > Recover Database From MySQL Dump File?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-11, 10:32
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Question [RESOLVED]Recover Database From MySQL Dump File?

I've got a database I needed to move from one server to another. I performed what I think is a successful dump into a text file however I don't know and can't find the process on how to upload the file into the new server so I can recover the data. I've created the database on the new server:

Code:
CREATE DATABASE finance;
Query OK, 1 row affected (0.00 sec)
Now I've copied the MySQL dump file to the server but don't know how I would execute the command to reload this into my newly created database 'finance'.

Last edited by CarlosinFL; 10-07-11 at 11:00. Reason: Resolved
Reply With Quote
  #2 (permalink)  
Old 10-07-11, 11:01
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Code:
    mysql -p finance < dumpfile.sql
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