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.


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:




which one will it pick?


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