File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes 'export' & 'import' database tables and content in MySql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark " Watch " New topic

'export' & 'import' database tables and content in MySql

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi all,

Simply put, I have created a database (myDB) in MySql and now it has some tables and some info in it. I want to send it to a client of mine (who already have MySql db but not myDB) and he will be able to use those tables and the information. He is not a computer savvy and I want to guide him with minimal technicality.

Question: How can I 'export' my database and send it to him and how can he 'import' it and use it?


(1) I have read about mysqldump - but it's a utility command line (not good - client not comp savy) I read about replication (same thing)

(2) In MS access I used to send the file and that's it... I take it its more complicated with MySql.

Any thoughts?
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
You should be able to use the MySQL Administrator to 'backup' the DB and then have your client 'restore' the DB. If the DB is very large this may take some time.
I agree. Here's the link:
subject: 'export' & 'import' database tables and content in MySql
It's not a secret anymore!