Question

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.

Was it helpful?

Solution

In order to take the backup of MySQL Server Objects i.e routines / triggers / events you can do like below

mysqldump -h$MySQLHost -u$YourUser -p$YourPassword --no-data --no-create-info --routines --triggers --events $Database > MySQLStoredProcedures.sql

The above will backup only the database objects , no data , no create table etc.

OTHER TIPS

Stored procedures are stored in database mysql. Innobackupex copies it by default. Make sure database mysql is restored with other databases.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top