MySQL - mysqldump --routines to only export 1 stored procedure (by name) and not every routine

后端 未结 4 1222
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 12:27

So we have a lot of routines that come out from exporting. We often need to get these out in CLI, make changes, and bring them back in. Yes, some of these are managed by dif

4条回答
  •  自闭症患者
    2020-12-14 13:03

    To answer your exact question: no.

    But this will probably give you what you want.

    Take a look at SHOW CREATE PROCEDURE and SHOW CREATE FUNCTION:

    http://dev.mysql.com/doc/refman/5.0/en/show-create-procedure.html

    http://dev.mysql.com/doc/refman/5.0/en/show-create-function.html

    Those commands allow you to dump the code for one routine at a time.

提交回复
热议问题