Skip to main content

How delete large file server.log?

Comments

3 comments

  • hmaddy
    you can remove it with rm command.
    0
  • Joso
    Is it possible to prevent this file from being recreated? that is, it is important to have this log file or you can do without it..
    you can remove it with rm command.

    0
  • cPRex Jurassic Moderator
    @Joso - that is likely the main error log file for the MySQL service. You can check and confirm this with the following command: grep log-error /etc/my.cnf
    which will show you the current error log location for MySQL. The best solution would be to examine the log and determine why there are so many errors being created, as this would indicate major issues with a user account or MySQL tool. Just deleting the log file or emptying it will not resolve the issue.
    0

Please sign in to leave a comment.