Need help regarding the ZM database
Posted: Sun Feb 23, 2020 1:31 am
Hello, TLDR is in bold.
I've had some strange issues take place after moving (changed timezones...) I think at this point, I have all timezone settings configured properly, however for a period of time, there was an issue where the database was saving events, but couldn't access them properly.
Long story short, the drive filled up because zmfilter couldn't find the events correctly to delete them.
I am wanting to delete ALL events, so I removed all of the event folders in zoneminder/events
Then I thought zmaudit would simply remove them, but it was unable to find and remove them from the db, so I tried to truncate all event tables manually in mysql (Events, Events-Day, Events-Week, etc.)
The number of events still showed up on the zoneminder web interface, though, so then I tried DROP TABLE Events, thinking that might fully clear it out.
Now of course I get errors that the table zm.Events doesn't exist, I was hoping it would recreate it when it first tried to make an event. Can someone help me out with the Events.frm file from V 1.34.3, so that I can recreate an empty Events table? Or is there a better way to regenerate the database? I have my Monitor and Zone tables backed up, which is all I really care about I think.
The web interface page still shows a large number of events for each camera and a huge file size (much larger than the physical space I have). Is there something else I need to do to reset those?
Thanks for any help, this has taken a couple days of my time trying to figure things out, and any help is appreciated.
I've had some strange issues take place after moving (changed timezones...) I think at this point, I have all timezone settings configured properly, however for a period of time, there was an issue where the database was saving events, but couldn't access them properly.
Long story short, the drive filled up because zmfilter couldn't find the events correctly to delete them.
I am wanting to delete ALL events, so I removed all of the event folders in zoneminder/events
Then I thought zmaudit would simply remove them, but it was unable to find and remove them from the db, so I tried to truncate all event tables manually in mysql (Events, Events-Day, Events-Week, etc.)
The number of events still showed up on the zoneminder web interface, though, so then I tried DROP TABLE Events, thinking that might fully clear it out.
Now of course I get errors that the table zm.Events doesn't exist, I was hoping it would recreate it when it first tried to make an event. Can someone help me out with the Events.frm file from V 1.34.3, so that I can recreate an empty Events table? Or is there a better way to regenerate the database? I have my Monitor and Zone tables backed up, which is all I really care about I think.
The web interface page still shows a large number of events for each camera and a huge file size (much larger than the physical space I have). Is there something else I need to do to reset those?
Thanks for any help, this has taken a couple days of my time trying to figure things out, and any help is appreciated.