MySQL workbench can export a MYSQL data model to SQL create table script. But can I choose to suppress comments when doing the export? If yes, how?
A:
I can offer you no integrated tool. You could run it through sed. The following command can do the trick:
sed '/^COMMENT/ d' original.sql > cleaned.sql
(Well... obviously you need sed for this...)
Kalmi
2009-08-07 23:21:12