1

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 2

2
 -R, --routines Dump stored routines (functions and procedures). 
Sign up to request clarification or add additional context in comments.

Comments

1
--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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.