从mysqldump恢复只有几个存储过程

时间:2014-04-17 09:48:18

标签: mysql sql

我的转储大小为14GB,我想从整个转储(结构和数据)中提取一些过程。 MYSQL中有任何选项吗?我在Windows 7中使用MYSQL 5.1。

 Mysql -u root -p "option here " < mydump.sql

1 个答案:

答案 0 :(得分:0)

使用notepad ++或类似程序将您要转储的部分复制到新文件中,然后针对服务器运行新scrit

转储只是程序:

mysqldump <other mysqldump options> --routines outputfile.sql

转储存储过程和触发器

mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt <database> > outputfile.sql