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.

Safe to delete /var/lib/mysql/ .err files?

Discussion in 'General Discussion' started by victomeyezr, Nov 3, 2011.

  1. victomeyezr

    victomeyezr Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    As the topic, is this safe to do? For some reason I have two files that are 1.3GB between the two.

    I think thats a little excessive.. :)
     
  2. victomeyezr

    victomeyezr Well-Known Member

    Joined:
    Sep 25, 2008
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    There is also a file called ibdata1 that is 633MB also, is this also needed?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You can clear the /var/lib/mysql/.err files, but if you have a lot of errors outputting into the error log, then you would probably want to check why that is happening. You should not delete the file, though, just clear it:

    Code:
    cat /dev/null > /var/lib/mysql/filename.err
    As for the ibdata1 file, please do not remove or clear that file. That contains data for InnoDB table storage engine. MySQL will cease functioning properly if you clear or remove that file in any way.
     
Loading...

Share This Page