Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!