实现Mastervim /etc/my.cnf [mysqld] log-bin server_id=1 skip_name_resolve=1 mysql>show master logs mysql>grant replication slave on *.* to repluser@'192.168.8.%' identified by 'magedu'; mysql>grant all on *.* to mhauser@'192.168.8.%' identified by 'magedu';