MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

5.6.4 The Rewriter Query Rewrite Plugin

MySQL supports query rewrite plugins that can examine and possibly modify SQL statements received by the server before the server executes them. See Query Rewrite Plugins.

MySQL distributions include a postparse query rewrite plugin named Rewriter and scripts for installing the plugin and its associated components. These components work together to provide statement-rewriting capability:

The following sections describe how to install and use the Rewriter plugin, and provide reference information for its associated components.