Bug 10782 - Add a koha-mysqlcheck script
authorMagnus Enger <magnus@enger.priv.no>
Mon, 14 Oct 2013 19:10:31 +0000 (21:10 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 23 Apr 2014 12:30:06 +0000 (12:30 +0000)
commit25c932967f9def41b689b07f4536f398b612944b
tree964e397ba2d42900c6a5cb26375013131d932564
parenta9f794a9c89465bdbf1b54ecd1c683c7825c8ae3
Bug 10782 - Add a koha-mysqlcheck script

This patch adds the koha-mysqlcheck script, as a "frontend" for
the mysqlcheck command. It can be used to check the integrity of
database tables, as well as to repair them. See "man mysqlcheck"
for more information.

The script takes a Koha instance name as its only required
parameter. Any other parameters provided before the instance
name are passed directly to mysqlcheck, which means that all
the functionality of mysqlcheck is available through this script.

To test the script:
- Apply the patch, build your own packages and install them, or
- copy koha-mysqlcheck to a server already running off packages

- Run some variations of the command, with and without arguments,
  and check that the output makes sense. E.g.:
    sudo koha-mysqlcheck myinstance
    sudo koha-mysqlcheck -e myinstance # Extended checks
    sudo koha-mysqlcheck -e -v myinstance # Extended checks and verbose
- See "man mysqlcheck" for other relevant options

To test the man page:
- Run these commands and look at the formatted man page:
    $ xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
      debian/docs/koha-mysqlcheck.xml
    $ man -l koha-mysqlcheck.8
- Make sure this test passes:
    $ prove -v xt/verify-debian-docbook.t

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
debian/docs/koha-mysqlcheck.xml [new file with mode: 0644]
debian/scripts/koha-mysqlcheck [new file with mode: 0755]