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 > How to move innodb table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-06, 00:17
Doreamon Doreamon is offline
Registered User
 
Join Date: May 2006
Posts: 2
How to move innodb table

Hi,

I am newbie in MySql. Currently we are using MySql version 5, and first i develop all the thing in my local machine, and now boss request to move all to server. I try to copy all file from data folder to server, but when i use query browser to view these table, it always prompt me table doesnt exist.

How i can move the whole database ?

Thanks in advance.

Regards
Reply With Quote
  #2 (permalink)  
Old 05-11-06, 04:14
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
Quote:
Originally Posted by Doreamon
How i can move the whole database ?
Try mysqldump. For example,
Code:
mysqldump -u root databasename > aRatherLargeFile.sql
. This will dump SQL code for the table creation and so on, and all the INSERTs required to populate the tables. You can restore from this dump on the server machine by simply reversing the procedure:
Code:
mysql -u root databasename < aRatherLargeFile.sql
Possibly you will have to edit the file to add "CREATE DATABASE yourDB;" and stuff like that. There are also backup tools, but I have never used them, so I can't recommend anything

Hope it helps!
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