https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41353
--- Comment #8 from David Nind <[email protected]> --- Created attachment 194249 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194249&action=edit Bug 41353: koha-dump failing on mysqldump PROCESS privileges Problem: Starting from MySQL 5.7.31 and MySQL 8.0.20, mysqldump requires the PROCESS privilege to access tablespace metadata by default. Without this privilege, backup operations fail with permission errors. Solution: Add the --no-tablespaces flag to the dbflag variable. This prevents mysqldump from attempting to access tablespace metadata, allowing backups to complete successfully without requiring the PROCESS privilege. Test Plan: 1. Set up a MySQL instance (5.7.31+ or 8.0.20+) without PROCESS privilege for the Koha database user 2. Run the koha-dump script for a Koha instance: sudo koha-dump kohadev 3. Notice the backup fails with a PROCESS privilege error 4. Apply the patch 5. Copy debian/scripts/koha-dump to /usr/sbin/koha-dump 6. Repeat step 2 7. Notice the backup now completes successfully without permission errors 8. Test restoring the dump to ensure it's valid: zcat /var/spool/koha/kohadev/kohadev-<date>.sql.gz | tail 9. Sign-off Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
