Convert utf8 tables to utf8mb4 in MySQL
Don’t blindly copy-paste this!
Don’t blindly copy-paste this!
ALTER TABLE app_repostarring CHANGE repo_description repo_description VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
最近在研究 MySQL 5.6 / 5.7 InnoDB storage engine 的 Transaction、Locking 和 Multi-Version Concurrency Control (MVCC) 機制,基本上只討論 Isolation level 是 REPEATABLE READ 或 READ COMMITTED 的情況,這一篇是過程中記錄下來的筆記。
0: stdin
1: stdout
2: stderr
Attach a lazy evaluated function as a property of request in a middleware.