The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL anonymous account security problem

Discussion in 'Database Discussions' started by Masimo, Feb 4, 2016.

  1. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    How to fix this MySQL security problem?

    [!!] User '@localhost' is an anonymous account.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you provide more information about where you noticed that warning? These commands will tell you if a user is configured without a password:

    Code:
    mysql
    SELECT User, Host, Password FROM mysql.user;
    Note: Please don't post the output from that command as it includes password hashes. Documentation on this is available at:

    MySQL :: MySQL 5.6 Reference Manual :: 2.10.4 Securing the Initial MySQL Accounts

    Thank you.
     
    Masimo likes this.
  3. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    Thank you very much for your reply.
    Its about 3861 rows! any idea?
     
  4. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    SOLVED! I found and removed all anonymous accounts by mysqltuner script.

    Example:
    mysql> DROP USER ''@'localhost';
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page