When I try to backup using mysqldump from ssh, I run the following command on machine 10.64.1.1. It gives the following error.
mysqldump --user=test -p=passwor
I know the topic is very old, but I happened to have the same issue. I figured out that the problem was just the special character used in the password. In fact they must be escaped with the anti slash: --password=123\@456
or using signle quotes --password='123@456'
In windows, I resolved it by making a directory and then dumping *.sql file in backup directory.
C:\backup
There are no issues with commands :
Remove the [ ] square brackets
mysqldump -u[username] -p[password] -h[ip] yourdb > C:\backup\sqlfile.sql
It worked for me:)
One more possible cause can be the place you are trying to create dump.
Writing mysqldump -u[username] -p yourdb > D:\backup\sqlfile.sql
instead of mysqldump -u[username] -p yourdb > sqlfile.sql
resolved my problem.