I'm telling mysql to prompt for a password but it won't acknowledge it:
mysql -h xxxxxx.xxxxxx.us-east-1.rds.amazonaws.com -P 3306 -u root –p
response: Access denied for user 'root@%'@'10.10.1.1' (using password: NO)
Even when I explicitly pass the password in the connection string I get the same response:
mysql -h xxxxxx.xxxxxx.us-east-1.rds.amazonaws.com -P 3306 -u root –pMyPassword
response: Access denied for user 'root@%'@'10.10.1.1' (using password: NO)
What is causing this?
Best Answer
You have wrong character in front of
p
, try to delete that character and replace it with-
, you can also try using following--password=XXX
, and lastly-P 3306
isn't needed unless you're using NON-standard port.