Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

log file of 117Mo can i delete it ?

Status
Not open for further replies.

haux

Programmer
Apr 11, 2001
79
DZ
I have in our school server a log file (/var/log/mysqld.log) which is 117Mo !!!
can i do
rm -f /var/log/mysqld.log
echo "" > /var/log/mysqld.log

Thank you for all
 
Hi,

After removing the file you would create an empty one with 'touch':

rm -f /var/log/mysqld.log
touch /var/log/mysqld.log

It might be a good idea to stop mysql before and restart after...

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top