How delete large file server.log?
Hi, on the VPS with cPanel the space has been reduced to the point that on an 800 gb SSD there are only about 100 gb left, so it is occupied for about 87%.
Analyzing the various files and folders I noticed that in the /var/lib/mysql folder there is the server.log file which occupies about 600gb.
I would like to know if I can delete this file and how to prevent it from being recreated so big.
Thank you
-
you can remove it with rm command. 0 -
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 -
@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.
Comments
3 comments