My Zoneminder installation seems to be imploding. This morning I woke up to find this error when I boot up the ZM console:
Can't open file: 'Events.MYI'. (errno: 145)
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/zm/zm_html_view_console.php on line 72
Can't open file: 'Events.MYI'. (errno: 145)
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/zm/zm_html_view_console.php on line 72
Checking my phpMyAdmin shows that the "Stats", "Events", and "Frames" tables are all "In Use". Rebooting my machine, restarting mySQL and ZoneMinder make no difference. I'm assuming that means I've got a corrupt database. Can someone tell me how to correct this? I'm no MySQL expert, but I'd imagine I could delete the database, and reload the "zmschema.sql" file.
Thank god I have this phpMyAdmin, I haven't been able to get MySQL working from the command line, but I am able to send SQL commands through the phpMyAdmin HTML interface. My first troubleshooting step (unless I hear better steps from someone here) will be to just delete the database and send the "zmschema.sql" command to re-initalize a clean database.