Weitere ähnliche Inhalte Kürzlich hochgeladen (12) 5.7の次のMySQL11. お互い6.0のことは忘れましょうや
Ver. PHP MySQL
5.0 2004/10-2005/09 2005/10-2012/03
5.1 2005/11-2006/08 2008/11-2013-12
5.2 2006/11-2011/01 -
5.3 2009/06-2014/08 -
6.0 ??-2010/03 2007/09(?
6.0.2)-2009/05
5.4 2012/03-2015/09 -
5.5 2013/06-2016/07 2010/12-
5.6 2014/08- 2013/02-
5.7 - 2015/10-
7.0 2015/12- -
8.0 - 開発中
10/23
20. 「kamipoのハハ=パパ問題」
SELECT * FROM families;
+----+-----------+--------------+
| id | name | relationship |
+----+-----------+--------------+
| 1 | ユイ | 本人 |
| 2 | キリト | パパ |
| 3 | アスナ | ハハ |
+----+-----------+--------------+
SELECT * FROM families WHERE relationship = 'パパ';
+----+-----------+--------------+
| id | name | relationship |
+----+-----------+--------------+
| 2 | キリト | パパ |
| 3 | アスナ | ハハ |
+----+-----------+--------------+
(c) kamipo
19/23
21. 今までのデフォルト
⽂字コード latin1, 照合順序 latin1̲swedish̲ci
⼤⽂字⼩⽂字(a vs. A)は区別しないけど、ASCII以外の⽂字はノータ
ッチ
-
というかlatin1な時点でみんな変更するからそれ程問題になることは
なかった
-
⽂字コード utf8(utf8mb4), 照合順序 utf8̲general̲ci
(utf8mb4̲general̲ci)
⼤⽂字⼩⽂字(a vs. A)は区別しないけど、ASCII以外の⽂字はほぼノ
ータッチ
ただし寿司はビール
-
いわゆる「MySQLは⼤⽂字⼩⽂字を区別しない」と「ハハ ≠ パパ」
が両⽴していた
-
20/23
22. MySQL本体のデフォルトがハハ=パパ問題を起こす⽇が
来る︖
In addition to utf8mb4, we are also considering
switching the default collation to be
utf8mb4̲unicode̲520̲ci.
Planning the defaults for MySQL 5.8
MySQL Bugs: #79977: utf8mb4̲unicode̲520̲ci donʼt
make sense for Japanese FTS
21/23