Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Created August 5, 2021 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoku0825/8386cf04ad1ca3727205f0c36ac213b0 to your computer and use it in GitHub Desktop.
Save yoku0825/8386cf04ad1ca3727205f0c36ac213b0 to your computer and use it in GitHub Desktop.
8.0.25 vs 8.0.26 : SET SESSION innodb_strict_mode = OFF
mysql> SELECT @@version;
+-----------+
| @@version |
+-----------+
| 8.0.25 |
+-----------+
1 row in set (0.00 sec)
mysql> SHOW GRANTS;
+--------------------------------------+
| Grants for yoku0825@% |
+--------------------------------------+
| GRANT USAGE ON *.* TO `yoku0825`@`%` |
+--------------------------------------+
1 row in set (0.00 sec)
mysql> SELECT @@session.innodb_strict_mode;
+------------------------------+
| @@session.innodb_strict_mode |
+------------------------------+
| 1 |
+------------------------------+
1 row in set (0.00 sec)
mysql> SET SESSION innodb_strict_mode = OFF;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT @@session.innodb_strict_mode;
+------------------------------+
| @@session.innodb_strict_mode |
+------------------------------+
| 0 |
+------------------------------+
1 row in set (0.00 sec)
mysql80 11> SELECT @@version;
+-----------+
| @@version |
+-----------+
| 8.0.26 |
+-----------+
1 row in set (0.00 sec)
mysql80 11> SHOW GRANTS;
+--------------------------------------+
| Grants for yoku0825@% |
+--------------------------------------+
| GRANT USAGE ON *.* TO `yoku0825`@`%` |
+--------------------------------------+
1 row in set (0.01 sec)
mysql80 11> SELECT @@session.innodb_strict_mode;
+------------------------------+
| @@session.innodb_strict_mode |
+------------------------------+
| 1 |
+------------------------------+
1 row in set (0.00 sec)
mysql80 11> SET SESSION innodb_strict_mode = OFF;
ERROR 1227 (42000): Access denied; you need (at least one of) the SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment