Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.