MySQL 配置示例
SHOW GLOBAL VARIABLES LIKE "%read_only%"; FLUSH TABLES WITH READ LOCK; SET GLOBAL READ_ONLY=1;