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 > copy mysql database in linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-17-06, 10:42
peterhsy peterhsy is offline
Registered User
 
Join Date: Apr 2006
Posts: 1
copy mysql database in linux

How to copy mysql database in linux and use it on windows
Reply With Quote
  #2 (permalink)  
Old 04-18-06, 17:04
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
Well, since this question hasn't been answered before...

Quote:
The most common use of mysqldump is probably for making a backup of an entire database:
shell> mysqldump --opt db_name > backup-file.sql
You can read the dump file back into the server like this:
Code:
shell> mysql db_name < backup-file.sql
Or like this:
Code:
shell> mysql -e "source /path-to-backup/backup-file.sql" db_name
from:http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html

You may also need to specify the host, username, password, etc.

http://www.eklekt.com/tutorials/tutorial.php?t=1
__________________
Give a man a fish and you feed him for a day. Teach a man to fish and you lose a steady customer.
-----------
Eclectic Web Development (under heavy construction)
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