Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

could you please help me

I exec

mysql -h 192.168.100.16

And get such response

ERROR 1045 (28000): Access denied for user 'user'@'192.168.100.171' (using password: NO)

As you can see there is different ip in response. Why is this happening? I can ping both of the ips and there are no problems with this.

share|improve this question
up vote 6 down vote accepted

You are connecting to 192.168.100.16, and the server is rejecting the connection from 192.168.100.171. The solution is to configure the server to allow connections from that IP address, for that user, with no password. (Or connect from another IP address, use a different user name, or specify a password.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.