Set into [mysqld]
of MySQL config, for Ubuntu your could create a file /etc/mysql/conf.d/disable_strict_mode.cnf
:
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION
SQL mode example:
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Then restart service for permanently effect.