I have a godaddy hosting account (shared hosting). On it I have a MySql database that I want to backup to a file daily. (Which I will later download for off-server backup).
I have set up the following command in my cron file (ran daily):
mysqldump -–opt -Q -h [myhost] -u myusername -–password=***** ebooklibrary > /fullpath.../_db_backups/openelibrary.sql
The database name is ebooklibrary.
I am constantly getting this error:
mysqldump: Got error: 1045: Access denied for user 'myusername'@'220.127.116.11' (using password: NO) when trying to connect
How can I fix this, or do it properly, so that mysqldump will run daily?
Using the shell, the following command worked:
mysql -h myhost -u myusername -p"*****" ebooklibrary