Tim Cutts <[EMAIL PROTECTED]> wrote:
>
> On 15 Mar 2004, at 12:34, Victoria Reznichenko wrote:
>
>> [EMAIL PROTECTED] wrote:
>>> Hello colleagues:
>>> I would like to know if it's possible to start the log file production
>>> at run time, i.e. without
>>> stopping and restarting the database ...
>>
>> No, you should restart MySQL server.
>
> Which is really irritating if you're debugging a problem with a busy
> production server. You don't want the general query log on all the
> time, but you don't want to have to have database downtime (even if
> it's only momentary) to switch the logging on and then off again.
You can enable/disable logging for session with SET SQL_LOG_OFF statement if user has
SUPER privilege.
It's supported from version 4.0:
http://www.mysql.com/doc/en/SET_OPTION.html
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]