My Oracle Support Banner

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 SEPTEMBER 04, 2023

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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.