0

I am working on accessing to mysql server remotely. My home pc to pc at the office.

I can access with 'myname'@'%'.

enter image description here

but I can't with 'myname'@'123.456.489.%'. '123.456.489.012'(redacted) is the IP address(IPv4) of my home pc.

enter image description here

I got this error:

enter image description here

I don't know why.

Herbert
  • 103
  • 1
  • 5

1 Answers1

0

Your MySQL server is resolving IP addresses to names before checking whether the connection is allowed. Thus it is checking the hostname of your IP address instead of the address itself, which is what you had configured.

You can turn off this behavior with skip-name-resolve.

For example:

 [mysqld]
 skip-name-resolve
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972