Forum archive
Mysql triggers lost after restore
Hello,
Seems like triggers are lost when restoring a backup.
Just created a new server (mysql) and tried restoring from a backup. After a workaround (https://github.com/turnkeylinux/tracker/issues/40) time to check database integrity. All triggers are gone.
Any ideias?
Best regards.
I only run very simple MySQL DBs and don't sue triggers so I am not sure. AFAIK TKLBAM just does a dump of the DB on backup and then restores it on restore. Someone else previously mentioned that Views were also lost on backup/restore so perhaps triggers are another thing that are not included in DB dumps by default? If you still have your original DB running then perhaps you can do some experimentation to see what is required to get the triggers included in a DB dump?
Regardless I have lodged a bug on the TKL Dev Tracker.