Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 2 dozen tables in a mysql DB. I can see the table by using desc tableName; How i dump the desc for all tables into a file so i can look through them easily and quickly?

share|improve this question
up vote 4 down vote accepted

mysqldump with --no-data will dump the schema out for you, e.g.:

mysqldump --opt --no-data -h $host-u $username -p$password $database
share|improve this answer
works well thanks :) – acidzombie24 Sep 22 '09 at 20:55

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.