ERROR 1201 (HY000): Could not initialize master info structure ...

Jun 17, 2008 12:53

Hello all. I'm so bored to kill this error ... can anybody help me ( Read more... )

Leave a comment

Comments 9

dimadams June 17 2008, 13:39:03 UTC
As you can see from error log the relay log gets corrupted. It's either memory/disk/some_system_library problem or a bug...
In my experience it happened only when server got rebooted and opened relay log file was messed up.

Reply

kiltum June 17 2008, 14:42:47 UTC
Why corrupted? Its just missing :) But why - i don know ;)

Reply

dimadams June 17 2008, 14:53:28 UTC
тогда не знаю, пинай сысадмина :) что-то там серьезно не в порядке в системе - файлы просто так не исчезают...
если хочешь кучу бесплатных/бесполезных советов, спроси на sql.ru в форуме mysql ;)

Reply


Can't you restart it? anonymous November 26 2008, 06:45:03 UTC
You should be able to just restart replication using the data in master.info. Check out this post for the exact commands:

http://blog.bit-matrix.com/2008/11/19/mysql-replication-error-1201-could-not-initialize-master-info-structure/

Reply


"Could not initialize master info structure" when trying to set the master _pyromancer_ May 20 2010, 10:58:19 UTC
I had a related problem to this, except I was getting:

ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log

in response to the command:

mysql> change master to master_host='192.168.0.2', master_user='####', master_password='####', master_log_file='master-bin.002557', master_log_pos=320489201;

All that was in the error log was

100519 11:05:13 [ERROR] Error reading master configuration

which didn't exactly help!

Turned out the actual problem was that the binary log index file on the slave contained references to files that no longer existed on the slave.

The solution was to do

updatedb
locate slave-relay-*

and then to edit the file

/var/lib/mysql/slave-relay-bin.indexand remove all lines referring to files that didn't show up in the locate results. Note find could have been used instead of updatedb and locate ( ... )

Reply


Mysql mugove June 9 2010, 12:10:35 UTC
Hi, I had the same error with configuring the master. In fact, I have never been able to configure replication to start at all, can you please post a step by step note or MY.CNF files for me? would greatly appreaciate, I am using a Fedora 10 machine (mysql Ver 14.14 Distrib 5.1.47) and Mandriva 2010 (ver 14.14 Distrib 5.1.42), please help

Reply

Re: Mysql kiltum June 9 2010, 12:32:19 UTC
Now i find only one solution: Drop all data, etc, and restart replication from "zero point". I even set the simple script for that like
slave stop;
delete ...
drop ..
set ...
slave start;

command all from mysql manual from "replication" section.

other solutions does not help for me.

Reply

Re: Mysql mugove December 31 2010, 18:19:03 UTC
flush slave;
change master to....
is the solution you all looked for...

Reply


Порно anonymous January 28 2011, 07:51:54 UTC

Leave a comment

Up