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 Databases not showing in CPanel

Discussion in 'General Discussion' started by serlex, Mar 28, 2011.

  1. serlex

    serlex Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    MySQL databases page on a CPanel account isn't showing any of the existing databases:

    :2083/frontend/x3/sql/index.html

    Quota is unlimited
    /tmp isn't full
    server isn't out of space
    /usr/local/cpanel/bin/checkperlmodules hasn't fixed it

    /usr/local/cpanel/logs/error_logs:
    Code:
    [2011-03-28 12:46:27 +0100] warn [dbstoregrants] Failed to write /var/cpanel/databases/grants_lazaride.yaml: No such file or directory at /usr/local/cpanel/Cpanel/CachedDataStore.pm 

    Any ideas?

    Regards
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hey !

    Can you make sure that the databases are in cPanel format? i.e., cpaneluser_dbname . If it isn't that's the issue!
     
  3. serlex

    serlex Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    /var/lib/mysql/

    lazaride_103
    lazaride_102
    lazaride_101
     
  4. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    What is the output of

    If you have var as a separate partition, is it full?
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Try to rebuild the MySQL database mapping users and permissions. If this doesn't work, try to create that missing file to see if that works:

    Code:
    /usr/local/cpanel/bin/setupdbmap
    touch /var/cpanel/databases/grants_lazride.yaml
    chmod 600 /var/cpanel/databases/grants_lazride.yaml
    Only run the last 2 commands to create the yaml file and change the permissions if the file doesn't exist upon running the previously mentioned stat and cat commands by ThinIce.
     
  6. serlex

    serlex Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    I don't know which one of these fixed it but I did following

    update cpanel via upcp
    /usr/local/cpanel/bin/checkperlmodules -full
    /usr/local/cpanel/bin/setupdbmap

    Cheers
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    It would be the last one because your database mapping can't have been setup for that user and the other two commands will not perform that function, so setupdbmap would have created the grants for the user for the missing file.
     
Loading...

Share This Page