MySQL Forums
Forum List  »  Oracle

Re: Importing from MYSQL
Posted by: Sania Sen
Date: June 04, 2010 12:21PM

To export/backup a database from the command line,you may do like this.

cd to whatever directory you wish to store the data, and enter:

mysqldump --default-character-set=latin1 -C -u USERNAME -p --opt --lock-tables=false --skip-add-locks --skip-extended-insert DATABASE > DATABASE.sql

Make sure you replace the values in CAPS with the correct info for your account (you can also change the character set if you wish).

To tgz compress the file DATABASE.sql for easier transportation:

tar czvf DATABASE.tgz DATABASE.sql

Options: ReplyQuote


Subject
Views
Written By
Posted
4212
May 26, 2010 03:58AM
2034
June 04, 2010 09:03AM
Re: Importing from MYSQL
2072
June 04, 2010 12:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.