MySQL Query and PHP script Customization: how can I find problems?

I inherited a site on which several different software packages work, which several times worked on several people, with many modifications and additions.

How can I systematically, universally, and I hope to automatically record / control / find scripts that use slow queries, persistent connections, unindexed connections, etc.?

+4
source share
2 answers

There are many tools to serve these needs:

Also on the site’s note is another wonderful Toad for MySQL tool (free), which provides full database management (including tables, views, triggers, functions, procedures, etc.), diagrams and schema / data comparison functions.

I personally recommend in order:

  • New relic (free or paid plan, if it is within the budget)
  • mysqltuner (only needed once or twice)
  • MySQL Enterprise Monitor (too expensive for most cases, but very good)
+2
source

You can enable the slow query log . mysqltuner also a good starting point for setting the most important parameters.

-1
source

Source: https://habr.com/ru/post/1387115/


All Articles