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 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:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    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.
     
Loading...

Share This Page