LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-21-2009, 07:26 PM   #1
mycoolwater
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Question Mysql logging for specific table activity


How do you guys to do just that? I know the option for global logging, with parameters --log on service run or log-bin and err-log for inside my.cnf. But what i am looking for is a way to log specifically a table activity, any activity, be it select or update queries.

3rd party solution is welcome too...
 
Old 09-21-2009, 08:17 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,232

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
I think you can either read the binary log
http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
http://www.mydigitallife.info/2007/1...h-mysqlbinlog/
http://search.cpan.org/~dnichter/MyS...ParseFilter.pm

Or

Add triggers to the table in qn, and write to an audit table
http://dev.mysql.com/doc/refman/5.0/en/triggers.html and then 'read' the audit table.
 
  


Reply

Tags
log, mysql, table


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using Mkfifo For Monitoring And Enhanced User Activity Logging LXer Syndicated Linux News 0 07-10-2008 06:20 PM
SUSE 10.3: How to enable logging for network activity and etc khaos83 Suse/Novell 7 06-16-2008 04:05 AM
Samba Activity Logging brianbek Linux - Networking 3 03-15-2005 08:47 PM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 12:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 11:30 AM


All times are GMT -5. The time now is 12:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration