LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   getting dump of stored procedure (https://www.linuxquestions.org/questions/linux-newbie-8/getting-dump-of-stored-procedure-732462/)

vinaytp 06-12-2009 08:23 AM

getting dump of stored procedure
 
hi all...

mysqldump -u root <databasename> > ~/path/to/store/dump

is used to get entire database dump..can i see the stored procedure code...this way...can anyone suggest me please....

Thanks in advance.....

Wim Sturkenboom 06-12-2009 08:33 AM

man mysqldump

I've recently found it in there, so I suggest you do a search in the man page (not at hand at this moment).

Ah, got it (internet is your friend)
option --routines

vinaytp 06-12-2009 08:48 AM

This is not working ...
i tried in several ways....

mysqldump -u root <databasename> --routines <storedprocedurename> > ~/Desktop/dump.sql

Wim Sturkenboom 06-13-2009 02:43 AM

What I understand from the man page is that --routines does not take an argument. So my guess is that it just dumps all stored procedures.

Quote:

This is not working ...
That does not help us to help you. How is it not working (error messages?) ?


All times are GMT -5. The time now is 06:49 PM.