By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,086 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,086 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Share this Question
Share on Google+
1 Reply


mwasif
Expert 100+
P: 801
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.