First, I created .my.cnf in /home/username/ with the following text:
.my.cnf in /home/username/
[client] user = sample_user password = sample_password host = localhost
You need to escape the percent sign (%), as it has a special meaning in crontab entries, use \% instead.