Don wrote:
>
> Hi list,
>
> I'm trying to backup up database in /etc/cron.daily. I've played with
> mysql dump with the following syntax:
>
> mysqldump --opt -p my_dbf.db > my_dbf.backup
> mysqldump --opt -p "my_password" my_dbf.db > my_dbf.backup
> mysqldump --opt -p my_dbf.db > my_dbf.backup < pswd
> (pswd contains the password)
>
> In each case, I still get prompted for the password. How can I automate
> this so that is accepts the password that I include. I guess what I am
> looking for is the proper syntax or a neat trick.
>
> Thanks,
> Don
You must supply the password without a space between it and the -p
mysqldump --opt -u<username> -p<password> mydb > mydb.backup
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php