0

I want to run the db dump code in the txt file while Spring boot application start. How can i do this? otherwise i must copy-past and run db dump code to the mysql cli with manually.

1 Answer 1

1

if you want to LOAD data to database, i prefer to use Liquibase

you can load your data from .csv / .yml / .json / .sql you can run it either before JPA Create Table or after create table.

So if you have a Team you all can have same data and table

if you want to DUMP your database, use liquibase too,

but why you want to dump your data if you have stable data master and it will automatically created everytime you run your app ?

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

1 Comment

Thank you for your answer. I will search the Liquibase. As for your question; it's my school project and I want to deliver my project to the teacher as plug and play.

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.