--主机开两个窗口,一个进入mysql,一个是shell --主机阻断写操作 mysql> FLUSH TABLES WITH READ LOCK; Query OK, 0 rows affected (0.00 sec) mysql> SHOW MASTER STATUS; +------------------+----------+--------------+------------------+.