使用时mysqldump,必须明确要求转储存储例程.该选项是--routines您手动运行它.如果您通过某个应用程序(Workbench)运行它,那么请查找其机制:
mysqldump
--routines
[ ] Dump Stored Procedures and Functions [ ] Dump Events [ ] Dump Triggers