7

I have a new database with schema and primary key, FK, index constraints created for all tables. How do I dump only the data from an existing database using mysqldump, so that I can import only the values alone and exclude everything else.

migrated from stackoverflow.com Feb 5 '13 at 8:50

This question came from our site for professional and enthusiast programmers.

7
mysqldump --no-create-db --no-create-info  ...options...

See http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html

0

Use this in putty.........

mysqldump -u username -p'password' $db_name > $db_backup.sql

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.