Slide 26
Slide 26 text
プロダクトアカウント
構成
Initial データ作成方法
New Master
(utf8)
1. GET TARGET SCHEMA
mysql > SELECT______________________________________________________________________________
SCHEMA_NAME_____________________________________________________________________
FROM________________________________________________________________________________
information_schema.SCHEMATA_____________________________________________________
WHERE_______________________________________________________________________________
SCHEMA_NAME NOT IN (’information_schema’, ’mysql’, ’sys’, ’performance_schema’);
2. GET TARGET COLUMNS
mysql > SELECT______________________________________________________________________________
TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME___________________________________________
FROM________________________________________________________________________________
information_schema.COLUMNS _____________________________________________________
WHERE_______________________________________________________________________________
CHARACTER_SET_NAME = ’utf8’ AND ________________________________________________
SCHEMA_NAME IN (’SCHEMA_NAME’, ...)_____________________________________________
GROUP BY____________________________________________________________________________
TABLE_NAME, TABLE_SCHEMA;≈≈≈____________________________________________________
New Master
(utf8mb4)
New Master に対して
ALTER(15パラ) で変更