From version 5.6 of MySQL onward we have configured by default STRICT_TRANS_TABLES
and this MySQL configuration token created these kinds of problems.
To avoid this problem you must follow these steps:
Edit the my.cnf
file (configuration MySQL file), it is in /etc/my.cnf
or /usr/my.cnf or /usr/local/mysql/my.cnf
and set the token:
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
As:
sql_mode=NO_ENGINE_SUBSTITUTION
Now restart the MySQL server:
/etc/init.d/mysql restart