Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

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.

share|improve this question
Off-topic, belongs on Database Administrators –  Jim Garrison Feb 5 '13 at 6:50
add comment

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

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

2 Answers

up vote 4 down vote accepted
mysqldump --no-create-db --no-create-info  ...options...

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

share|improve this answer
add comment

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

mysqldump -u username -p'password' $db_name > $db_backup.sql
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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