Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Error while trying to create database

Discussion in 'Database Discussion' started by goodspirit, Sep 16, 2014.

  1. goodspirit

    goodspirit Registered

    Joined:
    Sep 16, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lagos, Nigeria, Nigeria
    cPanel Access Level:
    Website Owner
    i just purchased cpanel license and i goto the "database" section and i cant create database, it keeps showing error, saying mysql servers is offline.
    Code:
     error :  Error while connecting to MySQL: Cpanel::DBI::Mysql connect('','root',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/MysqlUtils/Connect.pm line 136 Error while connecting to MySQL: Cpanel::DBI::Mysql connect('','root',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/MysqlUtils/Connect.pm line 136 ...caught
    check attachment for image

    issue2.png

    - - - Updated - - -

    anybody please help me suggest fix, thank you
     
  2. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    You this issue because mysql service is not working on your server. You need to contact to your hosting service provider.

    [Removed]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 server9host, Sep 16, 2014
    Last edited by a moderator: Sep 17, 2014
  3. wishinfo

    wishinfo Registered

    Joined:
    Sep 17, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I had same issue but now its fixed by comments of server9host
     
  4. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thanks for update :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please ensure you contact your web hosting provider for assistance if you do not have root access to this system. Otherwise, you can find additional error output in /var/lib/mysql/$hostname.err and /usr/local/cpanel/logs/error_log.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice