troubleshooting Question

mySQL SLAVE replication setup

Avatar of dealclickcouk
dealclickcouk asked on
DatabasesMySQL Server
1 Comment1 Solution2803 ViewsLast Modified:
I have an existing mysql replication setup, currently with 1 master and 2 slaves, I am trying to add a 3rd slave.

I've taken a copy of the DB from the master, and copied to the new slave, and made a note of the master log positions.

I've not got to the stage of starting the new slave yet as I get the following error when I do:

change master to MASTER_LOG_FILE="localhost-bin.017", MASTER_LOG_POS=185656024

Error Code : 1201
Could not initialize master info structure; more error messages can be found in the MySQL error log
(1672 ms taken)

The log file says:

070727 08:21:02  mysqld ended

070727 08:21:20  mysqld started
070727  8:21:20 [Warning] 'user' entry 'root@localhost.localdomain' ignored in --skip-name-resolve mode.
070727  8:21:20 [ERROR] Failed to open the relay log './localhost-relay-bin.000001' (relay_log_pos 4)
070727  8:21:20 [ERROR] Could not find target log during relay log initialization
070727  8:21:20 [ERROR] Failed to initialize the master info structure
/usr/sbin/mysqld: ready for connections.
Version: '4.1.22-standard-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Edition - Standard (GPL)
070727  8:27:34 [ERROR] Failed to open the relay log './localhost-relay-bin.000001' (relay_log_pos 4)
070727  8:27:34 [ERROR] Could not find target log during relay log initialization

Any suggestions would be awesome!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros