RE: Re-establishing nuked log file

2003-09-02 Thread Dan Greene
I don't know the answer to your question, but as a side note, I've always found 
cat'ing /dev/null into a file to be safer if the file may be in use

cat /dev/null  foo.log



 -Original Message-
 From: Jesse Sheidlower [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: Re-establishing nuked log file
 
 
 
 I recently restarted my MySQL server (4.0.10 in this case) with 
 the general query log enabled, to help out with some debugging and
 optimization issues. After looking at a batch of these, I then
 deleted the log file directly, with rm foo.log, assuming that it
 would be re-generated as soon as the next query came in. It was
 not.
 
 Is there any way to get logging restarted without stopping and
 restarting the server itself, which is live and which I'd prefer
 not to interrupt?
 
 Thanks.
 
 Jesse Sheidlower
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]
 
 

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Re-establishing nuked log file

2003-09-02 Thread Bruce Ferrell
flush logs from the mysql command line works

Jesse Sheidlower wrote:
I recently restarted my MySQL server (4.0.10 in this case) with 
the general query log enabled, to help out with some debugging and
optimization issues. After looking at a batch of these, I then
deleted the log file directly, with rm foo.log, assuming that it
would be re-generated as soon as the next query came in. It was
not.

Is there any way to get logging restarted without stopping and
restarting the server itself, which is live and which I'd prefer
not to interrupt?
Thanks.

Jesse Sheidlower



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Re-establishing nuked log file

2003-09-02 Thread Jesse Sheidlower
On Tue, Sep 02, 2003 at 07:59:07AM -0700, Bruce Ferrell wrote:
 flush logs from the mysql command line works

And so it does. Thank you. I misunderstood what the Manual
said about this command, though I should have tried it first
anyway.

Jesse Sheidlower

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]