MySQL may already be telling you what the problem is...
In reply to Re: Script runs from command line but not via crontab by apl in thread Script runs from command line but not via crontab by ericlee