I have an App Engine App that uses a Cloud SQL database for storing some data. I have a cron job that runs a bunch of data gathering code at 1am, and it's failing with the error:
OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
If I go to the Google Developers Console and set the password for root@localhost to "" (ie open the change password dialog, hit OK without entering anything in the password field), the job that the cron job points to finishes without a hitch. SQL access will then work for the rest of the day.
But the next cron job the following day will fail with the same error.
It seems like the root@localhost password is being reset to something at some point during the night. Anybody have any idea what's going on?
Thanks!