These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for mysqlcheck cron - solved on the new forum.
I had: mysqlcheck -u root -p password --auto-repair --check --optimize --all-databases set to run daily.
mysqlcheck -Af -u root -p password | grep -v OK | mail -s 'MySQL Check' me@mydomain.tld set to run a few minutes later.
The email I get says: "You should give only options, no arguments at all, with option --all-databases. Please see mysqlcheck --help for more information."
A: The solution was -ppassword (no space)