Koha-clms/debian/scripts
Saiful Amin d0f0ec542f
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 <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1f325d5799)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
2026-05-24 13:42:20 +01:00
..
koha-create Bug 41337: Add missing Bash variable to `koha-create` 2026-04-13 08:47:00 +01:00
koha-create-dirs
…
koha-disable
…
koha-dump Bug 41353: koha-dump failing on mysqldump PROCESS privileges 2026-05-24 13:42:20 +01:00
koha-dump-defaults
…
koha-elasticsearch Bug 36550: allow defaults to be defined for koha-elasticsearch 2026-05-24 13:42:18 +01:00
koha-email-disable
…
koha-email-enable
…
koha-enable
…
koha-es-indexer Bug 40890: Move fetching of batch size to within the instance loop 2025-11-07 10:54:17 -07:00
koha-foreach
…
koha-functions.sh Bug 42366: Fix debug_mode test for koha-conf.xml 2026-04-22 17:00:45 +01:00
koha-indexer
…
koha-list
…
koha-mysql Revert "Bug 41099: Make `koha-mysql` disable SSL if required" 2025-10-31 11:26:10 -06:00
koha-mysqlcheck
…
koha-passwd
…
koha-plack
…
koha-rebuild-zebra
…
koha-remove
…
koha-reset-passwd
…
koha-restore
…
koha-run-backups
…
koha-shell
…
koha-sip Bug 27115: Use start-stop-daemon to stop in koha-sip 2026-02-16 14:14:14 +00:00
koha-sitemap
…
koha-translate
…
koha-upgrade-schema
…
koha-upgrade-to-3.4
…
koha-worker
…
koha-z3950-responder
…
koha-zebra
…