After a recent upgrade i found several servers reporting cron errors via email - relating to Mod Security.

DBI connect('modsec:localhost','modsec',...) failed: Access denied for user 'modsec'@'localhost' (using password: YES) at /etc/cron.hourly/modsecparse.pl

It appeared as thought the modsec user didnt have acccess to the mod security database/table.

Read on for the fix.