I am using below command on server with ip y.y.y.y
to connect to DB hosted on x.x.x.x
mysql -u user -p -h x.x.x.x
I am getting below error, I don't why its picking [email protected] even though I have specified -h option
ERROR 1045 (28000): Access denied for user 'user'@'y.y.y.y' (using password: YES)
Make sure the following things are true:
bind adress = x.x.x.x
inmy.cnf
)