To use MySQL Performance Schema, these configuration considerations apply:
Performance Schema must be configured into MySQL Server at build time to make it available. See Section 21.2.1, “Performance Schema Build Configuration”.
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”.
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 and Runtime Configuration”, and Section 21.2.3, “Event Collection Pre-Filtering and Post-Filtering”.