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!

mysql error log SSH question

Discussion in 'General Discussion' started by simplyjesse, Feb 24, 2014.

  1. simplyjesse

    simplyjesse Member

    Joined:
    Feb 24, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I can't seem to get the correct command in SSH to get the mysql error log can you tell me what in this command is incorrect. Keep in mind the ip is made up for privacy:

    I am putting this into SSH (even tried cd/ before and cd/home/ before with no avail)

    /var/lib/mysql/traffic@ip-555-635-558-1588.err


    Much Appreciated
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,887
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You have to view a file with a command such as "cat" or "tail". EX:

    Code:
    tail -f /var/lib/mysql/hostname.err
    Replace "hostname" with the hostname of the server. Note that I highly suggest researching how to use Linux from the command line due to what appears to be limited knowledge in that area. There is potential to remove files or cause serious filesystem problems if you use a command incorrectly.

    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