What is the sort order for multiple matching user hosts? (Doc ID 1599847.1)

Last updated on MARCH 08, 2017

Applies to:

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

Goal

Determine which host will be used for a user that might match multiple accounts.

For example, if a client connects from IP address A.B.C.D which has host name my_host, and the MySQL server has the following accounts:

user@A.B.C.D

user@my_host

user@%

which one will it pick?

Solution

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