Warning
Error Code:
3135
MySQL Error 3135: SQL Modes Require Strict Mode
Description
MySQL Error 3135 indicates that specific SQL modes ('NO_ZERO_DATE', 'NO_ZERO_IN_DATE', 'ERROR_FOR_DIVISION_BY_ZERO') are being used without an explicit strict mode (e.g., `STRICT_TRANS_TABLES`). While these modes imply strict behavior, this message serves as a warning that they will be automatically merged with strict mode in a future MySQL release, reinforcing the need for explicit strict mode usage.
Error Message
'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
Known Causes
3 known causesImplicit Strict Mode Behavior
The specified SQL modes inherently enforce strict data validation, even when a strict mode is not explicitly declared, leading to this informational warning.
Server SQL Mode Configuration
The MySQL server's global `sql_mode` might include these specific modes without also explicitly including a strict mode, such as `STRICT_TRANS_TABLES`.
Application-Defined SQL Modes
Application code might be setting session-level SQL modes that include 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE', or 'ERROR_FOR_DIVISION_BY_ZERO' without concurrently enabling a strict mode.
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