Single Blog

Safely empty MySQL .log & .err files on cPanel Servers

January 3, 2017, Written by 24 comments

Over time the .log & .err files on cPanel servers can become huge, more often that not you should always investigate what is causing these files to generate to huge capacity in case there are issues with the databases that you are running.

We always investigate and keep our servers tidy, so ensuring these are regularly cleaned help us to monitor and fix any problems with MySQL.

cat /dev/null is often referred to a black hole in Linux based systems because it discards all data written and sends End of File character to any process reading data from it. This lets us clear the contents of a file.

Navigate to the MySQL directory on cPanel

cd /var/lib/mysql/

Run ls -l to find your file

ls -l

Clear the contents of the MySQL Error Log and Log File

cat /dev/null > /var/lib/mysql/

cat /dev/null > /var/lib/mysql/

Check the files are empty

ls -l

ls -l

James Ensor

  1. 2deformity
  2. cleveland gay chat line numbers
  3. gay seniors dating
  4. chat random gay
  5. gay chat cam ramdoom
  6. dating an hib positive gay man
  7. free slots
  8. house of fun slots
  9. river slots sweepstakes
  10. free slots 777
  11. caesar slots free download
  12. triple seven slots
  13. zelda inventory slots
  14. free slots that pay cash
  15. free vegas slots online
  16. slots of montana
  17. online slots real money
  18. dissertation help service singapore
  19. dissertation help us
  20. dissertation help
  21. dissertation defense powerpoint template
  22. what is a dissertation defense like
  23. masters dissertation writing
  24. Comments are closed.