Created
March 3, 2016 01:43
-
-
Save aereal/c29f48f52493cc18b647 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@localhost[(none)]> create database strict_test; | |
Query OK, 1 row affected (0.00 sec) | |
root@localhost[(none)]> use strict_test; | |
Database changed | |
root@localhost[strict_test]> SET NAMES utf8mb4; | |
Query OK, 0 rows affected (0.00 sec) | |
root@localhost[strict_test]> SET @@SESSION.sql_mode = 'TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY'; | |
Query OK, 0 rows affected (0.00 sec) | |
root@localhost[strict_test]> create table users ( `id` bigint unsigned not null, `is_private` tinyint(1) default '1', primary key (`id`)) engine=InnoDB, default charset=utf8; | |
Query OK, 0 rows affected (0.01 sec) | |
root@localhost[strict_test]> insert into users set id = uuid_short(); | |
Query OK, 1 row affected (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment