0

I have made an application that connects to my local MySql Database through java code and inserts and reads data. I need to package the application up in a jar and send it to a friend for his use. I have now run into the problem of how I will get that local database in that jar . How could I be able to allow access to my local db on another computer? Is it possible to be able to get an instance of that db over to his pc? thank you.

asked Jul 21, 2014 at 19:48

2 Answers 2

1

You should look at mysqldump. It will dump your entire database and data into a file. You can then send that file to your friend and have them run it to build the database and insert the data.

answered Jul 21, 2014 at 19:50
Sign up to request clarification or add additional context in comments.

Comments

1

You can export your DB to a file (using mysqldump). Your friend would have to install mysql on his/her computer and then initialize the DB with your dump file.

answered Jul 21, 2014 at 19:50

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.