Home:ALL Converter>Connecting to MySQL database on remote server - Access denied encountered

Connecting to MySQL database on remote server - Access denied encountered

Ask Time:2012-09-23T12:05:45         Author:Son

Json Formatter

I was trying to connect to MySQL database on a remote server from the command line.

mysql --host=<host name> --user=<username> --password=<password> <db name>

I have no issue with connecting to the db from the PHP source but I encountered this error while trying to connect from command line. I connected with exactly same username and password.

ERROR 1045 (28000): Access denied for user '<username>'@'<host IP address>' (using password: YES)

I am not sure which went wrong.

Author:Son,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12549640/connecting-to-mysql-database-on-remote-server-access-denied-encountered
yy