0

Well, I'm building a Java program by Netbeans and I need it to back up the whole bank, I have no idea how it does it, I'm new at it.

1
  • Follow these steps: 1. Open IDE 2. Start writing code 3. Read about databases 4. Repeat Step 2 Until you do it. Commented Mar 27, 2018 at 18:52

1 Answer 1

2

You can use mysqldump command:

mysqldump --databases mydb > dump.sql

more:

https://dev.mysql.com/doc/refman/5.7/en/mysqldump-sql-format.html

You can call it from Java using:

Process runtimeProcess = Runtime.getRuntime().exec(command);

As described: Simple Backup and Restore for mysql Database from Java

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.