Slaveä»æå¡å¨ï¼Ubuntuï¼
ï¼1ï¼æ¾å°MySQLå®è£
æ件夹修æ¹my.cnfæ件,vim my.cnf
s
ï¼2ï¼ ./support-files/myql.server restart éå¯MySQLæå¡ , ./bin/mysql è¿å
¥MySQLå½ä»¤çªå£
ï¼3ï¼è¿æ¥Master
change master to master_host='192.168.0.104', //Master æå¡å¨Ip
master_port=3306,
master_user='repl',
master_password='mysql',
master_log_file='master-bin.000001',//Masteræå¡å¨äº§ççæ¥å¿
master_log_pos=0;
ï¼4ï¼å¯å¨Slave
start slave;
温馨提示:内容为网友见解,仅供参考