To use the MySQL Performance Schema, these configuration considerations apply:
The Performance Schema must be configured into MySQL Server at build time to make it available. Performance Schema support is included in binary MySQL distributions. If you are building from source, you must ensure that it is configured into the build as described in Section 21.2.1, “Performance Schema Build Configuration”.
The Performance Schema must be enabled at server startup to enable event collection to occur. Specific Performance Schema features can be enabled at server startup or at runtime to control which types of event collection occur. See Section 21.2.2, “Performance Schema Startup Configuration”, Section 21.2.3, “Performance Schema Runtime Configuration”, and Section 22.214.171.124, “Performance Schema Event Filtering”.