Warning
Error Code:
4051
MySQL Error 4051: Audit Log Format Mismatch
Description
This error indicates an incorrect configuration for MySQL's audit log. It occurs when you attempt to enable or set `audit_log_format_unix_timestamp` without first setting `audit_log_format` to `JSON`. The `unix_timestamp` option is exclusively designed to work with the `JSON` audit log format.
Error Message
audit_log_format_unix_timestamp is applicable only when audit_log_format = JSON.
Known Causes
3 known causesIncorrect Audit Log Format
The `audit_log_format` system variable is not set to `JSON`, which is a prerequisite for enabling `audit_log_format_unix_timestamp`.
Premature Configuration Attempt
You tried to configure `audit_log_format_unix_timestamp` before or without properly setting `audit_log_format` to `JSON`.
Configuration Syntax Error
A typo or syntax error in your MySQL configuration file or `SET` statement might prevent `audit_log_format = JSON` from being correctly applied.
Solutions
Coming SoonGeneral 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