MySQL Forums
Forum List  »  Backup

Mysqldump on windows client works but in bat file doesn't
Posted by: Stephen Neff
Date: April 11, 2017 12:06PM

Hello, I run the command below in my Windows 7 Enterprise from a cmd environment on my local client and it works. I made a BAT file and when I execute on my local client it fails with
mysqldump: Got error: 1045: Access denied for user 'xxxxxxx'@'ip address'
(using password: YES) when trying to connect

I am stumped. Why would the command fail in a bat file?

"C:\Program Files\MySQL\MySQL Workbench 6.3 CE\mysqldump.exe" --databases mydabase --result-file="C:\xxxx\xxx\xxxx\xxxxx\GOES\MYSQL\MySql\backup\databases.%TIMESTAMP%.sql" --user=xxxxxxx --password=xxxxxx -h xxxx.xxxxxx.us-east-1.rds.amazonaws.com -P3306

Options: ReplyQuote


Subject
Views
Written By
Posted
Mysqldump on windows client works but in bat file doesn't
3800
April 11, 2017 12:06PM


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.