Mysql dumps via Cron job.
Hi.
I'm trying to figure out how to do daily dumps of a MySql database via Cron job. Doing the dump is easy enough, BUT it requires a password. Cron can't enter passwords. Is there any way to do this? Either pass along the password in the command line (so that Cron CAN enter the password) or set it so that you don't need a password to do the dump? |
You can pass a password on the command line:
Code:
mysqldump -u User -pPassword database > filename Håkan |
Quote:
|
All times are GMT -5. The time now is 04:21 AM. |