Fixes issue where MariaDBs with VIEWs couldn't be backupped on iAPC#12
Fixes issue where MariaDBs with VIEWs couldn't be backupped on iAPC#12asittampalam wants to merge 2 commits intoswisscom:masterfrom
Conversation
… restored in environments without super privileges.
|
Any updates on this @JamesClonk ? :) |
|
@asittampalam Sorry, I seem to have completely missed PR notifications for this repo. Didn't realize until now there was something waiting. Oops! 😅 Unfortunately this will not work by simply adding I'd also rather go for modifying the backup during restore while piping it into mysql rather than during dumping. You'd have to hook ontop the gzip reader and look for lines which contain |
When a MariaDB with a
VIEWwas backupped, it couldn't be restored in the iAPC environment because the dump containedDEFINER=XXXXXXXXstatements which neededSUPER PRIVILEGESduring the restore process.This pull request removes those statements from the dump and thus fixes the restoring process.