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?
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.
Code:
mysqldump database_name > database.sql
Move database.sql (database dump) to other computer and import using the following command
Code:
mysql database_name < database.sql
You can also access MySQL remotely if both computers are connected with LAN/internet.
Comment