Warning
Error Code: 4002

MySQL Error 4002: Performance Schema Error Log Disabled

📦 MySQL
📋

Description

This error indicates that MySQL's error logging to the Performance Schema is currently inactive. It occurs when the configured `log_error_services` variable does not include a log-sink capable of writing error events to the `performance_schema.error_log` table. As a result, error events from the current server run will not be available in the Performance Schema for monitoring and analysis.
💬

Error Message

None of the log-sinks selected in @@global.log_error_services supports writing to the performance schema. The server will not be able to make the current runs' error events available in performance_schema.error_log. To change this, add a log-sink that supports the performance schema to @@global.log_error_services.
🔍

Known Causes

3 known causes
⚠️
`log_error_services` Misconfiguration
The `@@global.log_error_services` system variable does not include a log-sink explicitly designed to write error events to the Performance Schema.
⚠️
Missing Performance Schema Log-Sink
The necessary log-sink for Performance Schema integration, such as `log_sink_performance_schema`, is not enabled or added to the active `log_error_services` list.
⚠️
Performance Schema Inactive
The Performance Schema itself might be disabled or not fully initialized, preventing any log-sink from writing to its tables.
🛠️

Solutions

Coming Soon

Detailed step-by-step solutions for this error are being prepared. In the meantime, try these general troubleshooting tips:

General Troubleshooting Tips

  • Check the error message carefully for specific details
  • Review recent changes that might have caused the error
  • Search for the exact error code in the official documentation
  • Check log files for additional context
  • Try restarting the application or service
🔗

Related Errors

5 related errors