Case study 1 – how to use the EXPLAIN plan tool in MySQL 8.0

As we have already explained in our previous sections, EXPLAIN describes how MySQL plans to execute any query. That is, it is a pre-execution tool, without affecting the performance of your database, not to compare with the profiling of a query that is another tool of MySQL.

The following table shows the EXPLAIN syntax in the most important versions of MySQL:

Get Advanced MySQL 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.