Zone Minder Chrashed

Support and queries relating to all previous versions of ZoneMinder
Locked
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Zone Minder Chrashed

Post by wheelbarrow »

Hi,

The PC i use for zoneminder chrashed today so i have to reboot with the reset switch.

It all came back so i was happy. However when i got to the zone minder page i can login ok but get the following error.

Got error 134 from table handler
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/html/zm/zm_html_view_console.php on line 41

I guess the database has got corupted.

Is the a quick fix for this or should i rebuild the machine from the live cd.


Regards

Paul
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

This will repair any damaged tables. Run as root

myisamchk --silent --force --fast --update-state -O key_buffer=64M \
-O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M \
/var/lib/mysql/*/*.MYI

Hope this helps.

Ross
wheelbarrow
Posts: 43
Joined: Sat Feb 21, 2004 7:39 pm

Post by wheelbarrow »

Thanks Ross,

This has got the database back.

Regards

Paul
Locked