简体   繁体   中英

Mysql Backup for innoDB

I am new to mysql backups. I read here and it is said how to backup a running database,but it is commercial. Please any one tell my how to back up innodb mysql database with its data and how to restore it with clear code samples in a java applications for swing applications .(how to stop the server,back up, then restart it.. mysql queries and java statements) .

You can effectively use the mysqldump utility to save backups. It is much more convenient than phpMyAdmin, sepecially in conjunction with a cron utility for planning regular backups.

My personal experience teach me always checking what storage engine is used in mysqldump backups. Sometimes, it must be manually pointed as MyISAM or InnoDB in a beginning of a dump file.

Please read some useful information about mysqldump here :

Why does it hava to be Java based? The Mysql command line tools can do what you want which could be scripted.

Also, web tools such as phpMyAdmin allow you to do backups etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM