Disable mysql strict mode

By default and for good reason, MySQL 5.7 is much “stricter” than older versions of MySQL.

That can make your application fail, specifically when column data is set to null. To temporarily fix this, change the SQL_MODE to “”

mysql -u root -p

SET sql_mode = “”;

set global sql_mode=”;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s