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 > Export then Import entire mysql database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-07, 13:35
uraknai uraknai is offline
Registered User
 
Join Date: Mar 2006
Posts: 41
Export then Import entire mysql database

Hi,

I have to transfer a mysql database from one PC to another PC. Both PC's are running Windows XP. MYSQL 5, APACHE and PHP5.

So, is there a command that will Export the entire database so that it can then be imported on the other computer.

Alternatively, can this be done table by table.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-19-07, 14:00
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
Have a look at the MySQL administrator from the MySQL website.. search for the GUI tools download
you can perform backups and restores from there
Reply With Quote
  #3 (permalink)  
Old 11-20-07, 04:06
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
If you don't have access to a GUI then I recommend you use the cmd line.
To export :
mysqldump -u <username> -p <databasename> > /path/to/filename.sql

To import :
mysql -u <username> -p <databasename> < /path/to/filename.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