1101 – BLOB, TEXT, GEOMETRY or JSON column ‘answer’ can’t have a default value
Probably your development environment allows the defaults and the production environment doesn’t. You can either upgrade your production system or not use that feature.
How to disable strict mode in MySQL 5 (Windows):
- Edit /my.ini and look for line
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
- Replace it with
sql_mode='MYSQL40'
- Restart the MySQL service (assuming that it is mysql5)
net stop mysql5 net start mysql5
If you have root/admin access you might be able to execute
mysql_query("SET @@global.sql_mode='MYSQL40'");