Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to set up some logging on my debian squeeze x64 mysql 5.1 Server:

1) logging when users logged in and logged off 2) logging only specific users commands

set up logging which will not slow down performance of mysql server or harddrives.

Is it possible to set logging only last month?

Is it possible to set up logging only in specific hours in a day?

I don't want gigabytes of useless logs, just logs of specific users in one file.

share|improve this question
add comment

1 Answer 1

You need MySQL 5.6 EE. With CE you could write your own audit plugin. Or use the poor man auditing with custom triggers and write your own retention routine.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.