Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not dump or restore routines/procedures #5

Open
khaytsus opened this issue Dec 22, 2018 · 3 comments
Open

Does not dump or restore routines/procedures #5

khaytsus opened this issue Dec 22, 2018 · 3 comments
Labels

Comments

@khaytsus
Copy link

I used this yesterday to fix a 8G ibdata1 file that I couldn't sort out what was causing it and lost all of my procedures and several of my databases used them. Luckily I realized what was going on and was able to dig them out of the setup sql for various things and import them.

@uberhacker uberhacker added the bug label Dec 22, 2018
@uberhacker
Copy link
Owner

@khaytsus: Sorry about your mishap. Can you please explain more clearly how you resolved your issue? @cmanley, is this something we need to test a bit more?

@khaytsus
Copy link
Author

Most programs that have databases have sql files that you use to import when you set them up and in this case I dug those out and cleaned out everything except the procedures and imported that like importing any sql file into that database.

It was a pretty easy fix, but wasn't too obvious until I realized the app (ZoneMinder) was logging errors because it couldn't run some procedures.

@cmanley
Copy link
Contributor

cmanley commented Dec 22, 2018

Perhaps adding the --routines option to mysqldump will solve it.
See http://www.logikdev.com/2011/03/01/how-to-dump-mysql-functions-and-stored-procedures/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants