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. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Feb 5 '13 at 8:50

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

Off-topic, belongs on Database Administrators – Jim Garrison Feb 5 '13 at 6:50
up vote 6 down vote accepted
mysqldump --no-create-db --no-create-info  ...options...


share|improve this answer

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

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

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.