you'll need to connect to the database, using a JDBC connector, then write the correct code and sql queries, and execute them.

here's a good place to start.

i have connected to database successfully but i want to make a button which read MySQL table data and store it in file and another button which read this file and fill another table with that data.

well, as I said, you'll have to:

write the correct code and sql queries, and execute them.

did you bother to take a look at the link I provided you with? maybe the part where it says:
Discussion and Sample Code for JDBC Programs?

please do your own homework.
show your code, show any error messages or what it does and what it should do, and then we'll look at it. stop acting as if we are 'developers-for-rent' who'll spend 24/7 doing your work for you.

lol nice

seriously, in your other thread I've provided you with a link that leads to complete code samples. look at them, learn from them and you're on your way not to need our help.

@rushikesh jadha

1) Both post merged - forum rule Keep It Organized Do not post the same question multiple times
2) Next time you create thread you better give it a proper name not "java help". We are in Java section and people posting here do need help - forum rule Keep It Clear Do use clear and relevant titles for new threads
3) You are expected to show effort and not just beg for answers. Just simple search on Google would gave you ton of resources "Java MySQL tutorial" - forum rule Keep It Organized Do provide evidence of having done some work yourself if posting questions from school or work assignments

Next time you fail to do any of above I will merciless delete your thread!

sometimes a wake up call is the right thing to do
This question has already been answered. Start a new discussion instead.