Skip to content

Instantly share code, notes, and snippets.

@Inkimar
Last active June 29, 2017 12:15
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 Inkimar/be4f4c0b76089460b73407df686d7069 to your computer and use it in GitHub Desktop.
Save Inkimar/be4f4c0b76089460b73407df686d7069 to your computer and use it in GitHub Desktop.
mysql help commands
2017-06-29
mysql> select version();
+-------------------------+
| version() |
+-------------------------+
| 5.7.18-0ubuntu0.16.04.1 |
+-------------------------+
1 row in set (0,00 sec)
mysql> show variables like '%version%';
mysql> show variables like '%innodb_strict%';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| innodb_strict_mode | ON |
+--------------------+-------+
1 row in set (0,01 sec)
mysql> set innodb_strict_mode = OFF;
Query OK, 0 rows affected (0,00 sec)
mysql> show variables like '%innodb_strict%';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| innodb_strict_mode | OFF |
+--------------------+-------+
1 row in set (0,00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment