Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created November 6, 2015 14:28
Show Gist options
  • Select an option

  • Save tuki0918/13aeb71199b0c5e6a872 to your computer and use it in GitHub Desktop.

Select an option

Save tuki0918/13aeb71199b0c5e6a872 to your computer and use it in GitHub Desktop.
mysql sql_mode
  • 5.5
mysql> SELECT @@GLOBAL.sql_mode;
+-------------------+
| @@GLOBAL.sql_mode |
+-------------------+
|                   |
+-------------------+
1 row in set (0.00 sec)
  • 5.6
mysql> SELECT @@GLOBAL.sql_mode;
+--------------------------------------------+
| @@GLOBAL.sql_mode                          |
+--------------------------------------------+
| STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION |
+--------------------------------------------+
1 row in set (0.00 sec)
  • /etc/my.cnf or /usr/my.cnf
[mysqld]
sql_mode=''
@tuki0918
Copy link
Author

tuki0918 commented Nov 6, 2015

SET @@global.sql_mode='';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment