Ежедневный файл журнала запросов

Windows Event Viewer (eventvwr.exe) получит события/ошибку, сгенерированные клиентом DHCP, здесь Вы сможете видеть, когда и требовали ли адрес (DHCPREQUEST) и чем ответ с сервера был (DHCPACK / DHCPNACK) (Эти события находятся в системной части утилиты Eventviewer),


0
задан 24 July 2013 в 03:53
1 ответ

On Windows, the simplest way to rotate a query log is:

  1. Rename the log file, e.g. rename mysql-query.log mysql-query-old.log
  2. Flush the logs by issuing FLUSH LOGS from a MySQL CLI or mysqladmin flush-logs from Windows. This will cause MySQL to close the file you just renamed and create a new file with the original name.

Note that Step 1 could easily be scripted to append the date, then Step 3 to zip the file, etc.

See http://dev.mysql.com/doc/refman/5.1/en/log-file-maintenance.html

1
ответ дан 4 December 2019 в 18:07

Теги

Похожие вопросы