Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1561

plz help me why the slave server dont see the master server ? (no replies)

$
0
0
hi all ,

I do the replication task and when i write the command
show slave status
the slave_io_status Thread == Connecting to master
which mean The thread is attempting to connect to the master.
why the slave dont see the master ?

"here is my steps to do replication"
====================================

#1 on server
-----------------------
[mysqld]
port=3306
log-bin=mysql-bin
server-id=1
binlog-do-db=test
binlog-ignore-db=mysql

#2 Back up the data

#3 show master status; //command and save the result to use it in slave configration .

#4 create user and grant replication slave previlages to him .
----------------------------------------------------------------
GRANT REPLICATION SLAVE ON *.*
TO 'slaveuser'@'localhost'
IDENTIFIED BY 'slave';

#5 restart master

#6 take a backup from the master

#7 restore the backup to the slave

#8 configure slave
--------------------------
[mysqld]
server-id=2
replicate-do-db=test
replicate-ignore-db=mysql

#9 Restart slave

#10 configure slave part2
--------------------------
CHANGE MASTER TO
MASTER_HOST='192.168.137.226',
MASTER_USER='slaveuser',
MASTER_PASSWORD='slave',
MASTER_LOG_FILE='mysql-bin.000002',
MASTER_LOG_POS=1435;

#11 restart slave

#12 show slave status;

#13 start slave;


Note: i'm working on windows 7 platform and mysql 5.5
thanks for help

Viewing all articles
Browse latest Browse all 1561

Trending Articles