Connections To MySQL Only Works Using an IP Address And Not Hostname: "[Warning] IP address '...' could not be resolved: Name or service not known" (Doc ID 2190855.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.

Symptoms

When creating a user identifying the connection using hostname instead of IP address, it is not possible to connect. For example the user created as:

 

However if the same user is created using the IP address, it is possible to connect.

Changes

There may have been changes to the DNS.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms