My Oracle Support Banner

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?


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

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.