Hi need to dump my mysql database with views and sp's. But I don't need any data. How can I write mysqldump command for that?
2 Answers
--no-data, -d Do not write any table row information (that is, do not dump table contents). This is useful if you want to dump only the CREATE TABLE statement for the table (for example, to create an empty copy of the table by loading the dump file). Source: man mysqldump and mysqldump --help