How To Use the Optimizer Trace Feature in MySQL 5.6 and Later to Investigate Why a Given Query Plan Was Chosen?

(Doc ID 2241524.1)

Last updated on OCTOBER 15, 2017

Applies to:

MySQL Server - Version 5.6 and later
MySQL Cluster - Version 7.3 and later
Information in this document applies to any platform.

Goal

Investigate why the optimizer chose a given execution plan for a query.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms