Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

232
Visualizações
mysql> host % vs host *

SELECT user, host FROM mysql.user; yields output like the following for us:

+------------------+---------------------------------------+
| user             | host                                  |
+------------------+---------------------------------------+
| %                | %                                     |
| plutot_admin     | %                                     |
| plutot_dev       | %                                     |
| plutot_intrn01   | %                                     |
| plutot_intrn02   | %                                     |
| plutot_ntrn01    | %                                     |
| plutot_ntrn02    | %                                     |
| plutot_tech      | %                                     |
| plutot_ntrn02    | *                                     |
| plutouser        | *                                     |
|   ...            |       ...                             |

% is wildcard host, but what is the significance of * in the query output?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

MariaDB (but also MySQL) isn't restrictive and doesn't check the validity of a hostname (RFC 2181) and therefore doesn't claim if a host name contains an asterisk or another invalid character.

The asterisk will not be interpreted as a wild card character, wild cards are limited to percentage (%) and underscore (_).

That means someone created the user with CREATE USER 'plutouser'@'*' command, likely with the assumption that the asterisk will be interpreted as a wildcard character.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda