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.

The MySQL server is currently offline.

Discussion in 'Database Discussions' started by luzagab, Nov 7, 2014.

  1. luzagab

    luzagab Registered

    Joined:
    Nov 7, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi

    I recently update my joomla 1.5 to 2.5 on my web site and it was working perfect but today apperars this in my cpanel and the administrator and the web site are not working! :confused:

    The MySQL server is currently offline.
    Code:
    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
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hey,

    Are you able to restart the service via SSH ?

    # /etc/init.d/mysql start

    Also check for the error-log at /var/lib/mysql/hostname.err
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, let us know if MySQL restarts successfully and if you notice any error messages in the MySQL error log. Also, check to ensure the /tmp/mysql.sock symbolic link exists.

    Thank you.
     
Loading...

Share This Page