简体   繁体   中英

What are the available java API to backup mysql database

是否有用于Java的API来备份mysql数据库?

You can use any Java API (through JDBC/JConnector) to backup a MySQL database. But unless there is a specific reason to do, I strongly suggest that you use MySQL specific tools (eg mysqldump) to create your backups.

您可以使用Runtime.exec(String)运行mysqldump命令

Not sure if you are trying build a tool which would do this. I would suggest you to reconsider it as there are readily available tool from mysql which does this job for you. If you are looking for automating the backup process, then I would recommend using the unix script .

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