MySQL Forums
Forum List  »  MySQL Administrator

mysqldump - windows command shell
Posted by: Nate Jensen
Date: March 13, 2012 09:04PM

I have a mysqldump script working well from the windows command shell, but when I try to run it in a .bat file or .cmd file it always fails. Here is my command:

"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump" -h *** -u *** -p*** --databases *** > "C:\myfakepath\_Database\backups\app_%date:~0,3%.bak"

But when I run this inside a .bat/.cmd file I get the error: "mysqldump: Got error: 1045: Access denied for user '***'@'c-2-4-64
-138.hsd1.ut.comcast.net' (using password: YES) when trying to connect".

I don't understand this. Why do my credentials work in a command shell, but not when launched from file?

Options: ReplyQuote


Subject
Written By
Posted
mysqldump - windows command shell
March 13, 2012 09:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.