[root@localhost ~]# mysql -p Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection> Server version: 5.1.61-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> STOP SLAVE IO_THREAD; //确保从服务器已经处理了中继日志中的所有语句
Query OK, 0 rows affected (0.00 sec)
mysql> SHOW PROCESSLIST; //检查SHOW PROCESSLIST语句的输出,直到你看到Has read all> +----+-------------+-----------+------+---------+------+-----------------------------------------------------------------------+------------------+