Skip to main content

The MySQL server is currently offline

Comments

10 comments

  • 24x7server
    Hello, Can you please check your mysql error logs file and let us know what error are you getting in that file. You can check this with the following command.
    /var/lib/mysql/ip-166-62-46-102.secureserver.net.pid
    0
  • velnix
    It should be
    tail /var/lib/mysql/`hostname`.err
    0
  • TerranceR
    Hello, I am facing a problem with my virtual server. After c-panel updated I have a database connection error. "The MySQL server is currently offline. Error while connecting to MySQL: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Error while connecting to MySQL: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 165." I talked with support but I didn't get any solution Below is a part of the discussion from support: -root@ip-166-62-46-102 [~]# service mysql start Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/ip-166-62-46-102.secureserver.net.pid). -root@ip-166-62-46-102 [~]# service mysql start Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/ip-166-62-46-102.secureserver.net.pid). -Looks to be a pretty severe issue with a database on the server. and the PID document if you VIM to it is blank so that doesnt look right at all Does anyone know how to solve this problem? and explain step by step what I have to do? I am new in these things so I don't know a lot. Thank you

    You said that you talked with support and didn't get a solution, what is the ticket number? I assume you didn't get a solution since it was likely related to InnoDB corruption?
    0
  • SAVVAS KONSTANTINOU
    Hello and thank you for replies. I get this when I am checking: -bash: /var/lib/mysql/ip-166-62-46-102.secureserver.net.pid: No such file or directory Also I talked with my server provider support not with c-panel support and I don't know the ticket number.
    0
  • TerranceR
    Hello, You will need to check /var/lib/mysql/ip-166-62-46-102.secureserver.net.err not /var/lib/mysql/ip-166-62-46-102.secureserver.net.pid
    0
  • TerranceR
    Also I talked with my server provider support not with c-panel support and I don't know the ticket number.

    I would recommend submitting a ticket to
    0
  • SAVVAS KONSTANTINOU
    Hello, I get this: -bash: /var/lib/mysql/ip-166-62-46-102.secureserver.net.err: Permission denied Thank you
    0
  • 24x7server
    Hello, Yes, I apologies for my last update. Correct mysql error logs file name is /var/lib/mysql/ip-166-62-46-102.secureserver.net.err and you can check live mysql logs with the following command.
    tail -f /var/lib/mysql/ip-166-62-46-102.secureserver.net.err
    0
  • SAVVAS KONSTANTINOU
    Hello, I spoke with support and now all OK, thank you This was the problem:
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.