in reply to Script runs from command line but not via crontab

In addition to what ForgotPasswordAgain said, your crontab entry should specify STDOUT and STDERR (e.g.  >/log/db2sql.out 2>/log/db2sql.err) so you can see the results of the run.

MySQL may already be telling you what the problem is...