Reputation: 4145
I have inherited a site running several different software packages worked on by several different people over several years, with lots of modifications and addons throughout.
How can I systematically, pervasively, and I hope automatically log/monitor/find scripts that use slow queries, persistent connections, unindexed joins, etc.?
Upvotes: 4
Views: 1363
Reputation: 46040
There is a variety of tools to service these needs:
Also on a site note, another awesome tool is Toad for MySQL (free) which provides full database management (including tables, views, triggers, functions, procedures, etc), diagramming, and schema/data comparison functions.
I personally recommend, in order:
Upvotes: 2
Reputation: 14549
You can enable slow query log. mysqltuner
is also good as a starting point to tune most important params.
Upvotes: -1