Mysql –master linux-slave 一.My.ini: Server-id=1 relay-log=relay-bin relay-log-index=relay-bin-index binlog-do-db = studyyii 重启服务器 登陆mysql Mysql –u root –p 在主数据库建立slave连接的权限: mysql> grant replication slave,reload,super on *.* to 'root'@'172.31.80.31'…