472,143 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 6430
802 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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.