Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6645709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:19:22+00:00 2026-05-26T00:19:22+00:00

Below is the result of the query select host, user from mysql.user from a

  • 0

Below is the result of the query select host, user from mysql.user from a fresh installed MySQL 5.

+-----------+------------------+
| host      | user             |
+-----------+------------------+
| 127.0.0.1 | root             |
| localhost | debian-sys-maint |
| localhost | root             |
| ubuntu    | root             |
+-----------+------------------+

127.0.0.1, localhost, and ubuntu all point to the same machine, which is the local host. I can’t find any difference after removing the rows with the seemingly duplicate host/user pairs from the table.

What’s the difference between these? Can I safely remove the other two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:19:22+00:00Added an answer on May 26, 2026 at 12:19 am

    From the manual:

    When you install MySQL, the grant tables are populated with an initial
    set of accounts. The names and access privileges for these accounts
    are described in Section 2.10.3, “Securing the Initial MySQL
    Accounts”, which also discusses how to assign passwords to them.

    And:

    Some accounts have the user name root. These are superuser accounts
    that have all privileges and can do anything. The initial root account
    passwords are empty, so anyone can connect to the MySQL server as root
    without a password and be granted all privileges.

    On Unix, each root account permits connections from the local
    host. Connections can be made by specifying a host name of localhost
    or the actual host name or IP address.

    However, I can’t find any rationale for this. There’s nothing elsewhere in the manual that suggests that this is required for any particular reason, but presumably it’s to cover all the bases for request verification. There may be some instances where one originating local connection uses one account whilst others require use alternatives; I guess it was decided that ensuring local root access will always work, no matter what the edge case, was a good thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the SQL query: SELECT ISNULL(t.column1, t.column2) as [result] FROM t I need
I have produced a result from the following query as shown below.Now the result
E.g: with the select query I got below result: columnA columnB type1 typea type2
my query is below : $qStuff=mysql_query(SELECT c.field_name,t.category_name,t.category_code, d.domain_name FROM category_fields c, taxonomy_category t, taxonomy_domain
I have below SQL query: SELECT * FROM ( SELECT S.aCol, S.bCol, S.cCol, ROW_NUMBER()
I think I'm being stupid. rc = Mysql.new('CENSORED_HOST','username','password','db') release = rc.query('select * from wp_ribcage_releases
I have a query that returns a result set similar to the one below:
I'm trying to mesh the below mysql query results into a single json object,
currently i obtain the below result from the following C# line of code when
I'm trying to write sql that produces the desired result from the data below.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.