I\'m trying to use mysqldump to export only the DB schema -- no data, no additional SQL comments, just the CREATE TABLE commands. Here\'s what I\'ve go
mysqldump
CREATE TABLE
This uses grep as well, but it seems to work:
mysqldump -d --compact --compatible=mysql323 ${dbname}|egrep -v "(^SET|^/\*\!)"
I'm using:
Ver 10.11 Distrib 5.0.51a, for debian-linux-gnu (x86_64)