patternsqlMinor
Is it possible to backup stored routines and functions with Innobackupex?
Viewed 0 times
storedwithinnobackupexpossibleroutinesandfunctionsbackup
Problem
I am running a few restore tests on my Dev and I've noticed that the stored routines are not being restored with the innobackupx. Is that something achievable ? Am I doing something wrong ?
I am only using innodb tables so it will be good to restore the db using only innobackupx.
Thank you.
I am only using innodb tables so it will be good to restore the db using only innobackupx.
Thank you.
Solution
In order to take the backup of MySQL Server Objects i.e
The above will backup only the database objects , no data , no create table etc.
routines / triggers / events you can do like belowmysqldump -h$MySQLHost -u$YourUser -p$YourPassword --no-data --no-create-info --routines --triggers --events $Database > MySQLStoredProcedures.sqlThe above will backup only the database objects , no data , no create table etc.
Code Snippets
mysqldump -h$MySQLHost -u$YourUser -p$YourPassword --no-data --no-create-info --routines --triggers --events $Database > MySQLStoredProcedures.sqlContext
StackExchange Database Administrators Q#105411, answer score: 3
Revisions (0)
No revisions yet.