Question : MySQL - how to create a back up copy of database using InnoDb tables on another Windows machine

Greetings,

I have MySQL server and databases both located on a Windows XP machine.  This machine is networked, but its local hard drive is not backed up by the company-wide backup routine.  And we need a backup.  I'm told that if I can get this data or a copy of it on to a network drive (Windows network) that it will be backed up along with everything else.

What I want is to duplicate this database out on the network in such a way that if the original ever gets corrupted or the hard drive that it's on ever dies, I can copy it back to another location, point the MySQL server to it, and use it normally.

Is this possible?  If so, what are the steps?

Many thanks!

Answer : MySQL - how to create a back up copy of database using InnoDb tables on another Windows machine

It would restore all.  However the mysqldump creates a plain text file and the databases are seperated into seperate sections.  I have edited the dump file to just restore a single database.  You could also just use mysqldump multiple times creating a seperate file for each database.  Just remove the --all-databases and add the specific database name as the last argument.

mysqldump --complete-insert --opt -u username -ppassword databasename > backup.sql
Random Solutions  
 
programming4us programming4us