Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save a mysql database

Status
Not open for further replies.

cnw40007

Technical User
Mar 4, 2003
35
IE
hi is it possible to save a mysql database onto a floopy to use on another computer?If so how would i go about it?Thanks cnw40007
 
at prompt

if you are using linux

/usr/bin/mysqldump -u root -psomepassword database_name > /mnt/floppy/dumpfilename.sql



if you are running MS

c:\mysql\bin\mysqldump -u root -psomepassword database_name > a:\filenale.sql

Bye

Qatqat
The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
great that worked, how do i save it onto another linux machine?
 
How do you connect to the other machine? SSH, FTP, NFS or what? //Daniel
 
Do you mean How to import it into another machine?

move the file across. Save it into any directory
let's assume /tmp

if your file is called dbfile.sql

then log on like this


/usr/bin/mysql -u root -pyourpassword database_name < /tmp/dbfile.sql

Bye

Qatqat The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top