If the first character of the host name is '/' then use unix_socket instead of host. Mostly to allow connections to multiple instances on a system where there may or may not be network access (mysqld_multi for example), or where there are multiple instances to allow granting permissions to only localhost.