Fix "mysqldump: Access denied... (using password: NO)" in an Automated Backup Script
Your mysqldump command works when you type it yourself but fails from cron with "Access denied... using password: NO"? Here's the actual cause (it's not your password) and the right fix for an automated backup script.