hi all ,
my senario is i want to make a replication between master server and slave server i do the following steps but the replication dosent work
i dont know where is the problem ??? please help me
"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; when i do this it gives me in the IO_status = connecting which mean the slave dosent connect already with the master
#13 start slave;
Note: i'm working on windows 7 platform and mysql 5.5
thanks for help
my senario is i want to make a replication between master server and slave server i do the following steps but the replication dosent work
i dont know where is the problem ??? please help me
"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; when i do this it gives me in the IO_status = connecting which mean the slave dosent connect already with the master
#13 start slave;
Note: i'm working on windows 7 platform and mysql 5.5
thanks for help