mysql的主从模式配置 1.改主库配置文件:D:\Program Files\MySQL\MySQL Server 5.5(my.ini/my.cnf)在下面加入 [mysqld] log=c:/a.log 下面这两句可以不加入 log-bin=mysql-bin server-id=1 先Ctrl+R,输入cmdnet start mysql 启动net stop mysql 停止 2.授权,导数据: grant replication slave on *.* TO 'replicatio…