Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] How to check when a MySQL table was last SELECTED
- Date: Wed, 9 Mar 2011 23:55:22 +0900
- From: Sach Jobb <sach@example.com>
- Subject: Re: [tlug] How to check when a MySQL table was last SELECTED
- References: <AANLkTimvddpUuyfAX03zBCD39UitaxOck2a1jc_t8_Dp@example.com> <AANLkTimH4bp+Vxn7F6_25pNKZ3oMx3tvYWRguLGaXVY=@example.com> <685C8172-18A3-4921-81BB-4942C85E0E34@example.com> <AANLkTimg3eefRV-R8xUODSFLpazCw-4qhKbFEOzA47GL@example.com>
>> Bin log will only record the modifications, so SELECT will not be logged. > > Ah, good point. Yup there is not point in having a slave or node repeat a SELECT. >> If the SELECT was slow and you had slow_query logging turned on >> it would show up there. Depending upon the version you could log all >> selects by making the slow_query threshold extremely small. > > Be careful; I set the threshold to 0 last week in an attempt to > disable the slow query log (I think that worked in MySQL 5.0, but we > just upgraded one DB to 5.1) and generated 200G of logs in a couple of > hours. :-/ Funny, thing. This will probably work. If it's set to 0 and it logs ALL SQL queries that's fine. I'll just run it in a few sample sets over a week or so at various hours, then correlate the data later. >> Actually, maybe MySql Proxy would do a good job of that. > > Good idea. You could also simply proxy the client through netcat and tee, right? Ah, that could work too but it's probably easier to shift through the slow log (assuming it works). Thanks for the ideas all. Cheers, Sach
- Follow-Ups:
- Re: [tlug] How to check when a MySQL table was last SELECTED
- From: Josh Glover
- References:
- [tlug] How to check when a MySQL table was last SELECTED
- From: Sach Jobb
- Re: [tlug] How to check when a MySQL table was last SELECTED
- From: Josh Glover
- Re: [tlug] How to check when a MySQL table was last SELECTED
- From: zev
- Re: [tlug] How to check when a MySQL table was last SELECTED
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Alternatives to sed + awk
- Next by Date: Re: [tlug] How to check when a MySQL table was last SELECTED
- Previous by thread: Re: [tlug] How to check when a MySQL table was last SELECTED
- Next by thread: Re: [tlug] How to check when a MySQL table was last SELECTED
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links