cc

Start the service in the slave database and log in to the database
service mysqld start
mysql -u root -p
change master to
master_host="Service IP",
master_user="", ###Authorized user and password on the master server
master_password='',
master_log_file ="", ### is the value of show master status on the master server
master_log_pos= ; ### is the value of show master status on the master server

Start the slave service from the database: start slave;
test! Slave server
show slave status\G;
### slave_IO_runnig:on
##slave_sql_runnig:on These two are on, it means success

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325115807&siteId=291194637
cc