For annoying searching getting here after searching for this error message:
Access denied for user 'someuser@somewhere' (using password: YES)
The issue for me was not enclosing the password in quotes. eg. I needed to use -p'password'
instead of -ppassword