469,575 Members | 1,376 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

How to import/export an existing MySQL database using neatbeans?

I have Connected to a MySQL Database using a neatbeans editor. Now, I want to use that same database I created earlier on another pc. Can anyone help and tell me how that is done, please?

Thank you.
Mar 7 '10 #1
1 6169
mwasif
801 Expert 512MB
I never used netbeans to connect to MySQL. But you can use MySQL's command line utility mysqldump to export database by running the following command on shell.
Expand|Select|Wrap|Line Numbers
  1. mysqldump database_name > database.sql
Move database.sql (database dump) to other computer and import using the following command
Expand|Select|Wrap|Line Numbers
  1. mysql database_name < database.sql
You can also access MySQL remotely if both computers are connected with LAN/internet.
Mar 7 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Robert Rozman | last post: by
9 posts views Thread by christopher_board | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.