I have a table with 2M records and everything works fine until few hours ago.
suddenly it throw error on a query that previously works fine for more than 1 year.
The problem is that inserting a correct dateTime like 2019-07-15 22:22:47
into a timestamp column return error:
Incorrect datetime value: '0000-00-00 00:00:00' for column 'created_at' at row 1
1- I did duplicated table structure and query works fine on duplicated table
2- I did run yum update
today.
3- OS: CentOS release 6.10 (Final)
4- MySql: Server version: 8.0.16 MySQL Community Server - GPL
Edit: i have read other questions but its completely different, I've posted the answer