0

What is the best practice for backing up MySQL InnoDB tables? (for myisam I use backuppc)

How can I do a backup and how can I restore it?

Thank you.

Vitthal
  • 327
  • 1
  • 13

2 Answers2

0

mysql> mysqldump -u username -ppassword databasename tablename > Path to save

you can schedule in in windows scheduler or in cron job after creating the batch file or SH file.

Tabish
  • 1,592
  • 16
  • 13
0

You can use 'mysqldump' program from MySQL to dump individual tables..

shell> mysqldump [options] [tbl_name ...]

To restore the tables use command:

shell>mysql -uusername -ppassword -f -D databasename < /path/to/file/dbbackup.sql

skstar
  • 415
  • 4
  • 12