1. mampsupportmod
  2. MAMP - Official Guides
  3. Monday, 28 January 2019

MySQL 'Strict Mode' is a new feature in 5.7.

Strict mode controls how MySQL handles invalid or missing values in data-change statements such as INSERT or UPDATE. A value can be invalid for several reasons. For example, it might have the wrong data type for the column, or it might be out of range. A value is missing when a new row to be inserted does not contain a value for a non-NULL column that has no explicit DEFAULT clause in its definition. (For a NULL column, NULL is inserted if the value is missing.) Strict mode also affects DDL statements such as CREATE TABLE.


Disable MySQL Strict Mode MAMP PRO


1. In MAMP Pro, go to File -> Edit Template -> MySQL (my.cnf) -> (your version)

2. Find [mysqld]

3. Add the following line immediately below [mysqld]: sql_mode=""


mamp pro disable strict mode


4. Save your my.cnf file and restart MySQL.



Disable MySQL Strict Mode MAMP (Free)


1. Quit MAMP.

2. Run following command in the Terminal:

touch /Applications/MAMP/conf/my.cnf && open -t /Applications/MAMP/conf/my.cnf


3. When this file is empty, then add the following below. If the file is not empty, then simply add the line sql_mode="" right after the line [mysqld]



4. Save the config file and close the text editor; restart MAMP and start the servers.



There are no replies made for this post yet.
Be one of the first to reply to this post!