Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using mysqldump to backup mysql database. I have created a batch file that would do it for me, and I used task scheduler to do it automatically. But everytime it launches it, it always prompt for a password, which requires user intervention, what would I do with this. Any other ways that you know on how to do this?

share|improve this question
up vote 1 down vote accepted

Using the --password option to mysqldump you can specify the password to use so that it doesn't have to prompt you. Add --password=<yourpassword> to the command that you use to invoke mysqldump in the batch script.

share|improve this answer

There is an Open Source script called automysqlbackup that has some good features, including auto login and dated backups - worth a study.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.