8. default_password_lifetime = 360 ( < 5.7.11 )
もう直ってる(?)から気にしなくても大丈夫ですよ
This had been changed to 0, no problem‐
MySQL Bugs: #77277: default_password_lifetime
should be set 0 as implicit default value
Thank you Morgan and MySQL Server Team!‐
7/36
13. kamipoのハハ=パパ問題
kamipo’s Mother-Father Issue
SELECT * FROM families WHERE relationship = 'パパ';
+----+-----------+--------------+
| id | name | relationship |
+----+-----------+--------------+
| 2 | キリト | パパ |
| 3 | アスナ | ハハ |
+----+-----------+--------------+
12/36
14. kamipoのハハ=パパ問題
kamipo’s Mother-Father Issue
元々はActiveRecordでは明示的に照合順序を指定しない場
合にcharset utf8で照合順序 utf8_unicode_ci にしてしまっ
てハハ=パパになる
Originally, this issue causes the default collation in
ActiveRecord when using charset utf8 was utf8_unicode_ci.
‐
UNICODEの仕様による 問題の派生
This is caused by UCA 4.0.0, same as Sushi-Beer Issue‐
ActiveRecordでデフォルトの照合順序を変更する
13/36
15. MySQL 8.0.1
The default value of the character_set_server and
character_set_database system variables has changed
from latin1 to utf8mb4.
The default value of the collation_server and
collation_database system variables has changed from
latin1_swedish_ci to utf8mb4_0900_ai_ci .
MySQL :: MySQL 8.0 Release Notes :: Changes in
MySQL 8.0.1 (2017-04-10, Development Milestone)
14/36
16. utf8mb4_0900_ai_ci
0900 .. Unicode Collation Algorithm 9.0.0ベース
Based on UCA 9.0.0‐
ai .. アクセントインセンシティブ
Accent insensitive‐
ci .. 大文字小文字を区別しない
Case insensitive‐
15/36
18. utf8mb4_0900_ai_ci
デフォルトではハハ=パパになる
Mother = Father is TRUE by default.‐
病院も美容院になる
Hospital = Beauty parior is TRUE, too.‐
= ではなくなった
= is FALSE, this is correct.‐
MySQL = MySQL(某WEBメディアにやさしい)
MySQL = MySQL is TRUE‐
17/36
20. そんな我々を救うために(?)日本語用の照合順序が新設
された
Collation for Japanese language has been impremented.
utf8mb4_ja_0900_as_cs is the first Japanese language-
specific collation available for Unicode in MySQL.
MySQL :: MySQL 8.0 Release Notes :: Changes in MySQL
8.0.1 (2017-04-10, Development Milestone)
19/36
21. utf8mb4_ja_0900_as_cs
ja .. 日本語用
For Japanese language‐
0900 .. Unicode Collation Algorithm 9.0.0ベース
Based on UCA 9.0.0‐
as .. アクセントセンシティブ
Accent sensitive‐
cs .. 大文字小文字を区別する
Case sensitive‐
20/36
22. utf8mb4_ja_0900_as_cs_ks
ja .. 日本語用
For Japanese language‐
0900 .. Unicode Collation Algorithm 9.0.0ベース
Based on UCA 9.0.0‐
as .. アクセントセンシティブ
Accent sensitive‐
cs .. 大文字小文字を区別する
Case sensitive‐
ks .. ひらがなとカタカナを区別する
Kana sensitive‐
21/36
24. Collations
collation ハハ != パパ びょういん != び
よういん
!= MySQL = MyS
QL
utf8mb4_gen
eral_ci
o o x x
utf8mb4_090
0_ai_ci
x x o o
utf8mb4_ja_
0900_as_cs
o o o o
utf8mb4_bin o o o x
23/36
31. その他思うところ
The others which I had seen
“ROLE” が予約語になった
“ROLE” becomes reserved word‐
前、SonarQubeさんがこれで死んだ
My SonarQube raised error(1 years ago)
‐
TempTable Storage Engineって紹介されてる?
What is TempTable Storage Engine?‐
internal_tmp_mem_storage_engine = TempTable(Default) or
MEMORYってなってるけど
temptable_max_ram = 1Gって大きくない?
‐
password_history は(今のところ)デフォルト0
password_history is set to 0 (at least now)‐
30/36
36. おまけ
An addition
ちなみに次はMySQL 9.0.0?
Will the next MySQL be 9.0.0?‐
MySQL Bugs: #79269: Failure of auth_socket
authentication with sha256_password as default
35/36