简体   繁体   English

Mysql Backup for innoDB

[英]Mysql Backup for innoDB

I am new to mysql backups. 我是mysql备份的新手。 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) . 请任何人告诉我如何用数据备份innodb mysql数据库,以及如何在java应用程序中为swing应用程序使用清晰的代码示例还原它。(如何停止服务器,备份,然后重新启动它。 java语句)。

You can effectively use the mysqldump utility to save backups. 您可以有效地使用mysqldump实用程序保存备份。 It is much more convenient than phpMyAdmin, sepecially in conjunction with a cron utility for planning regular backups. 它比phpMyAdmin方便得多,特别是与cron实用程序结合使用以计划常规备份。

My personal experience teach me always checking what storage engine is used in mysqldump backups. 我的个人经验告诉我,总是检查mysqldump备份中使用了什么存储引擎。 Sometimes, it must be manually pointed as MyISAM or InnoDB in a beginning of a dump file. 有时,必须在转储文件的开头将其手动指向MyISAM或InnoDB。

Please read some useful information about mysqldump here : 在此处阅读有关mysqldump的一些有用信息:

Why does it hava to be Java based? 为什么必须基于Java? The Mysql command line tools can do what you want which could be scripted. Mysql命令行工具可以执行您希望执行的脚本。

Also, web tools such as phpMyAdmin allow you to do backups etc 此外,网络工具(例如phpMyAdmin)允许您进行备份等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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