IT WORKS!!
I followed the link, and it put me on the right path.
I did the same procedure as before, sudo su, cd to /var/lib/mysql/zm,
then entered the instruction:
mysqlcheck -c -u -root -p --all-databases --auto-repair
It then asked for the password, at last, and on entering it, it did the
check procedure!. Despite mysql being specifically for use while the
database is running, it complained that two tables had not been shut
down, but continued on anyway:
Extract:
zm.Stats
warning : Table is marked as crashed
warning : 5 clients are using or haven't closed the table properly
error : Found 158665 keys of 159586
error : Corrupt
zm.TriggersX10 OK
After it had finished, I Stopped Zoneminder running, and repeated the
process. And everything came back as OK. A final check, I brought up a
camera, initiated a Forced Alarm, and it finally worked.
Many, many thanks to those who have helped me.
--
Davey.