检查一个主库和一个从库的一致性。 [root@mysqldb ~]# mysqlrplcheck --master=root:123@127.0.0.1:3307 --slave=root:123@127.0.0.1:3308; WARNING: Using a password on the command line interface can be insecure. # master on 127.0.0.1: ... connected. # slave on 127.0.0.1: ... connected. Test Description Status --------------------------------------------------------------------------- Checking for binary logging on master [pass] Are there binlog exceptions? [pass] Replication user exists? [pass] Checking server_id values [pass] Checking server_uuid values [pass] Is slave connected to master? [pass] Check master information file [pass] Checking InnoDB compatibility [pass] Checking storage engines compatibility [pass] Checking lower_case_table_names settings [pass] Checking slave delay (seconds behind master) [pass] # ...done. [root@mysqldb ~]#
检查主从库的一致性,并且显示主库从库的信息。 [root@mysqldb ~]# mysqlrplcheck --master=root:123@127.0.0.1:3307 --slave=root:123@127.0.0.1:3308 --show-slave-status -vv; WARNING: Using a password on the command line interface can be insecure. # master on 127.0.0.1: ... connected. # slave on 127.0.0.1: ... connected. Test Description Status --------------------------------------------------------------------------- Checking for binary logging on master [pass] Are there binlog exceptions? [pass] Replication user exists? [pass] Checking server_id values [pass]