Are there any good class libraries for Java backup databases (different databases / exports to different formats)? (o (*) o)

for example, the function of backing up the database is encountered in the project, but the database itself is not installed on the machine where the project is running. Is there any good class library you can recommend? (^ ^)

attachment: it is not feasible to call the mysqldump command with Java.
Mar.10,2021

  • if you can use a tool, take a look at dbeaver . This tool can make backups directly through jdbc and generate sql
  • .
  • if you need to write it yourself, you can take a look at this code http://isocra.com/articles/db., which is relatively crude
  • .
  • if the database is large enough, mysqldump is the most reliable.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaa211-1fa6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaa211-1fa6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?