If you are using a installed MySQL you should edit the my.cnf file in the MySQL directory at /usr/local/Cellar/mysql/<version>/my.cnf.
Comment out or change the sql_mode at the bottom
https://www.euperia.com/development/mysql-fix-field-doesnt-default-value/1509
or check mysqli extension is enabled on your php.ini of the server file.
Thanks Support