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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nadeenahmed
    New Member
    • Mar 2010
    • 1

    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.
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    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

    Working...