Reputation: 1
I'm using mysql 5.22 version for master and slave replication. when I execute the show slave status command it's showing slave_io_state as connecting. how to solve this problem.
Please help me the same.
Regards,
Yasar
Upvotes: 0
Views: 1130
Reputation: 1551
If Slave I/O
thread is showing Connecting to Master
status check these things:
Upvotes: 0
Reputation: 2061
From here-
run a "show master status" on the master DB. It will give you the correct values to update your slave with. From your slave status, it looks like your slave has successfully connected to the master and is awaiting log events. To me, this means your slave user has been properly set up, and has the correct access. It really seems like you just need to sync the correct log file position. Careful, because to get a good sync, you should probably stop the master, dump the DB, record the master log file positions, then start the master,import the DB on the slave, and finally start the slave in slave mode using the correct master log file pos. I've done this about 30 times, and if you don't follow those steps almost exactly, you will get a bad sync.
Else go through this(How to set up replication) again, to see if there are some config problem.
Upvotes: 1