授权 grant replication slave on *.* to slave@192.168.10.64 identified by "123456" 登录测试 mysql -h 192.168.10.63 -u slave -p 123456 scp all1.sql 192.168.10.64:/root 导入数据库,和主服务器保持一致 mysql -u root -p <all1.sql Relay_Log_Pos:459 Relay_Master_log_File…
1.查看master的状态 mysql> show master status; //Position不应该为0 mysql> show processlist; //state状态应该为Has sent all binlog to slave; waiting for binlog to be updated 2.查看slave状态 mysql> show slave status; //Slave_IO_Running 与 Slave_SQL_Running 状态都要为Yes s…
配置MySQL主从复制报错 ``` Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but thi…