Saturday 8 September 2012

MySQL how to turn off Strict mode


Open your "my.ini" file within the MySQL installation directory, and look for the text "sql-mode".
Find:

Code:
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Replace with:

Code:
# Set the SQL mode to strict
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Or, you can run an SQL query within your database management tool, such as phpMyAdmin:


Code:
SET @@global.sql_mode= '';

No comments:

Post a Comment