Bug #3337 | Option to clear the query log without shutting down the server | ||
---|---|---|---|
Submitted: | 30 Mar 2004 10:33 | Modified: | 7 Oct 2005 22:23 |
Reporter: | Gilles Levreau | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 4.x | OS: | Windows (Windows) |
Assigned to: | CPU Architecture: | Any |
[30 Mar 2004 10:33]
Gilles Levreau
[30 Jun 2004 19:42]
Bruce Bristol
In Unix you can do cat /dev/null > logfile and that'll clear it out. You may be able to open a command window in Windows and do type nul > logfile Not sure how that'll work in Windows with the file open. Good luck!
[7 Oct 2005 22:23]
Hartmut Holzgraefe
FLUSH LOGS should help you with this http://dev.mysql.com/doc/mysql/en/flush.html