LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2009, 09:23 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
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.....
 
Old 06-12-2009, 09:33 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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

Last edited by Wim Sturkenboom; 06-12-2009 at 09:40 AM. Reason: got it
 
Old 06-12-2009, 09:48 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
This is not working ...
i tried in several ways....

mysqldump -u root <databasename> --routines <storedprocedurename> > ~/Desktop/dump.sql
 
Old 06-13-2009, 03:43 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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?) ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing FreeBSD on Virtual Box error: "Cannot dump. No dump device defined" Valkyrie_of_valhalla *BSD 4 09-06-2007 05:02 AM
Locking in Stored Procedure dugas Programming 2 03-25-2007 12:40 PM
MySQL Stored Procedure Question?? sehgals Linux - Software 5 01-31-2005 02:54 PM
stored procedure in mysql suchi_s Programming 2 10-01-2004 07:14 AM
How to forcely dump the history of user commands to the admin dump file. mcp_achindra Linux - Security 1 03-19-2004 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration