Surprisingly this error disappears most of the time, and the app works fine when stopped and started again just after the error occurs.
As evident from the error message, it has something to do with default values for timestamp columns.
I suspect setting some MySQL modes might have something to do with this error. However, I am not sure, since this error occurs randomly even when testing with the same CSV files.
SET GLOBAL SQL_MODE="NO_BACKSLASH_ESCAPES,NO_ENGINE_SUBSTITUTION,NO_ZERO_IN_DATE";
When running the application sometimes MySQL gives an error like:
Surprisingly this error disappears most of the time, and the app works fine when stopped and started again just after the error occurs.
As evident from the error message, it has something to do with default values for timestamp columns.
I suspect setting some MySQL modes might have something to do with this error. However, I am not sure, since this error occurs randomly even when testing with the same CSV files.
MySQL docs, regarding the NO_ZERO_IN_DATE mode.