mysql automatic optimize & repair.

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

mysql automatic optimize & repair.

Post by fernando »

can zm check their databases and see if they are ok ?

since sometimes they broke events mostly wen the machine is power off
and do a optimize tables sometimes.
Fernando
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

I use a script called CheckTables.sh

the script just do a "myisamchk -rf /var/lib/mysql/zm/*.MYI" every time the system boots (put it in rc.local)


Sure the system will take something like 2 or 3 minutes (in many cases less than this) to boot up, but this way you ensure your system will be nice to work.


in a full 80 GB system, with 16 cameras, 256 MB Duron 1.4, it only takes 1 minute. i think uts a good way to do that

victor diago
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Post by fernando »

thanks victor..
i allready use mysqlcheck in cron every 10 min. repair and optimization.
works GREAT
Fernando
Post Reply