????5?????????????
????mysql> show master status;
????+------------------+----------+--------------+------------------+
????| File  | Position | Binlog_Do_DB | Binlog_Ignore_DB |
????+------------------+----------+--------------+------------------+
????| mysql-bin.000002 | 263 |  |   |
????+------------------+----------+--------------+------------------+
????6????????????
????mysql> change master to
????-> master_host='192.168.0.202'??
????-> master_user='sync'??
????-> master_password='1234.com'??
????-> master_log_file='mysql-bin.000002'??
????-> master_log_pos=263;
????#Log??pos??master???????????????????д??my.cnf???檔
????7?????slave????????????
????mysql> start slave;

????????Slave_IO_Running ?? Slave_SQL_Running ??????????YES???????????????
????8????????????
????????mysql?????????abc?????mysql?????????????
????mysql> create database abc;
????mysql> show databases;
????+--------------------+
????| Database   |
????+--------------------+
????| information_schema |
????| abc    |
????| mysql    |
????| performance_schema |
????| test    |
????+--------------------+
??????slave????????
????“Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’”
??????????????????????slave????master??????????????pos????????
??????flush logs????????????????????????? show master status;???????????????position???
????????slave?У???У?CHANGE MASTER TO MASTER_LOG_FILE=‘???????????’??MASTER_LOG_POS=?;
?????????????????start slave??