I need to dump only the stored procedures : no data, no table creation. How can I do this using mysqldump?
This should do it for you:
It would be much better not to separate the stored procedures from the database so that specific stored procedures will be created in the database it was meant for. The same goes for triggers. This would be preferrable:
In my case this command give me an error
I had the
And if youy only want the routine, you can add -