What does MySQL "::1" hostname refer to?

mlvljr picture mlvljr · Feb 22, 2011 · Viewed 30.9k times · Source

On a freshly installed (windows version of) MySQL 5.5.9

SELECT user, host FROM mysql.user

gives:

user            host    

root        localhost   
root        127.0.0.1    
root        ::1  
localhost    

But what IP/hostname does ::1 stand here for?

Answer

Brian Driscoll picture Brian Driscoll · Feb 22, 2011

::1 is the IPv6 address for localhost.

The details (incl.those relevant to the Windows case) are at http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html.