Last updated: 20211220
To avoid this issue, you need to remove NO_ZERO_DATE from the mysql mode configuration.
- Go to ‘phpmyadmin’. (in WHM not cPanel)
- Once phpmyadmin is loaded up, click on the ‘variables’ tab.
- Scroll down and search for ‘sql mode’.
- Click on the Edit option and remove NO_ZERO_DATE (and its trailing comma) from the configuration line.
- Save (hit ‘save’ on the left side) and that’s it!
- You will have to repeat this on every server upgrade/reboot of your MYSQL.
This is a very common issue in the local environment with wamp or xamp.
This will allow you to use default ” 0000-00-00 00:00:00″ as a timestamp value.
Reference:
https://stackoverflow.com/questions/9192027/invalid-default-value-for-create-date-timestamp-field