MySQL Forums
Forum List  »  Replication

Re: stored procedures and functions
Posted by: Andrew Blake
Date: March 07, 2012 02:34PM

Hi

What works for me is to use the --routines option in the mysqldump command that sets up the slave server.

That is, when I first set up the slave server, I do a mysqldump of the master server with the following options (as well as the regular connection options):

--quick --skip-comments --master-data --single-transaction --add-drop-database --all-databases --routines

This causes mysqldump to output the "create procedure" and "create function" queries that originally created the procedures and functions, rather than in the form of inserts to the mysql.proc table.

I don't know why it doesn't work without the "--routines" option, but it does seem to work if you use it.

Hope that helps

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: stored procedures and functions
1121
March 07, 2012 02:34PM
1056
March 08, 2012 04:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.