In Bluehost under the cronjob task list I have set up a job that executes every minute.
mysql --user=myusername --password=mypassword use mydb
-e "UPDATE `users` SET val = '1' WHERE name = 'matt'"
I believe I am not selecting the database properly as I am using the same username and pass to log into PHPmyAdmin and the SQL query works fine once I have logged into PHPmyAdmin.
Where is the mistake?