Sign up ×
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

And get such response

ERROR 1045 (28000): Access denied for user 'user'@'' (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, and the server is rejecting the connection from 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


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.