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

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

1 Answer 1

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.