Error 1201 Hy000
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings error reading master configuration and policies of this site About Us Learn more about Stack Overflow
Failed To Open The Relay Log
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation could not find target log during relay log initialization Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it error 1202 only takes a minute: Sign up Error: “could not initailize master info structure” while doing Master Slave Replication in MySQL up vote 26 down vote favorite 6 I am trying to do Master Slave Replication for MySQL. When i am typing the following command: CHANGE MASTER TO MASTER_HOST='10.1.100.1', MASTER_USER='slave_user', MASTER_PASSWORD='slave_password', MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=451228; mysql> START SLAVE; it throws the following error:
Got Fatal Error 1236 From Master When Reading Data From Binary Log:
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log Any help would be greatly appreciated. mysql replication master slave share|improve this question edited Feb 17 '11 at 20:51 Vijay Dev 9,211145388 asked Feb 17 '11 at 13:22 user619684 131123 add a comment| 2 Answers 2 active oldest votes up vote 89 down vote TRY TO RESET IT, IT DOES MAGIC! ON SLAVE THE SLAVE MYSQL COMMAND TYPE: RESET SLAVE; THEN TRY AGAIN: CHANGE MASTER TO MASTER_HOST='10.1.100.1', MASTER_USER='slave_user', MASTER_PASSWORD='slave_password', MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=451228; mysql> START SLAVE; share|improve this answer answered Mar 29 '12 at 21:10 Neo 4,70913655 1 thanks a lot, had same problem here... –eran Nov 12 '12 at 16:15 1 Thanks a lot. This worked for me :D Power! (y) hehe –marknt15 May 15 '14 at 7:13 2 Worked for me. This blew my mind. –Logan Bissonnette May 28 '14 at 20:51 2 This is the solution, in my case in happened after doing start slave with a wrong server_id in the slave, s
Elkin Email Updates: Status: Can't repeat Impact on me: None Category:MySQL Server: Replication Severity:S3 (Non-critical) Version:5.1+ OS:Any change master to Assigned to: Daogang Qu Tags: RESET SLAVE Triage: Triaged: D2 (Serious) mysql replication View Add Comment Files Developer Edit Submission View Progress Log Contributions [9 Apr 2009 8:33] Andrei Elkin Description: CHANGE MASTER can't make it if before RESET SLAVE failed at purging relay log files (see Bug #44179). ERROR 1201 (HY000): Could not initialize http://stackoverflow.com/questions/5029485/error-could-not-initailize-master-info-structure-while-doing-master-slave-rep master info structure or ERROR 29 (HY000): File './slave-relay-bin.000001' not found (Errcode:2) persist even if RESET SLAVE and restart the slave server are attempted. There seems to be only manual removing of obsolate slave info files can help. How to repeat: mysql> RESET SLAVE /* and simulate an error inside my_delete_allow_opened() -> my_delete() https://bugs.mysql.com/bug.php?id=44181 as bug#44179 instucts */; There might be a crash as bug#44179 reported. At restart: mysql> change master to master_host='dummy'; ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log mysql> reset slave; Query OK, 0 rows affected (5.07 sec) or restart, and again mysql> change master to master_host='dummy'; ERROR 29 (HY000): File './slave-relay-bin.000001' not found (Errcode: 2) [22 Aug 2009 10:45] Daogang Qu The problem can't be reproduced. Please review the following test: daogangq@daogangq-laptop:~/mysql/bzrwork/bug44181/mysql-5.1-bugteam/mysql-test$ ./mtr --start rpl_view Logging: ./mtr --start rpl_view 090822 13:46:52 [Note] Plugin 'FEDERATED' is disabled. 090822 13:46:52 [Note] Plugin 'ndbcluster' is disabled. 090822 13:46:52 [Warning] Forcing shutdown of 2 plugins MySQL Version 5.1.39 Checking supported features... - using ndbcluster when necessary, mysqld supports it - SSL connections supported - binaries are debug compiled Collecting tests... - adding combinations for rpl vardir: /home/daogangq/mysql/bzrwork/bug44181/mysql-5.1-bugteam/mysql-test/var Checking leftover processes... - found old pid 18878 in 'mysqld.1.pid', killing it... proc
log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to http://dba.stackexchange.com/questions/16321/slave-settings-not-working any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://pks-sme.blogspot.com/2012/01/error-1201-hy000-could-not-initialize.html about hiring developers or posting ads with us Database Administrators Questions Tags Users Badges Unanswered Ask Question _ Database Administrators Stack Exchange is a question and relay log answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Slave settings error 1201 hy000 not working up vote 1 down vote favorite I have this machine as slave. Below is the command I ran and stuck. I done the change on the config file and set the id=2 too. Anything else I am missing here? slave start; ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log mysql> change master to MASTER_HOST='192.168.1.15', MASTER_USER='replication1', MASTER_PASSWORD='*******',MASTER_LOG_FILE='mysql-bin.000001'; ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log ? Below is the results of show master status\G *************************** 1. row *************************** File: mysql-bin.000001 Position: 98 Binlog_Do_DB: fms,sms Binlog_Ignore_DB: 1 row in set (0.00 sec) show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 192.168.1.15 Master_User: replication1 Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000001 Read_Master_Log_Pos: 98 Relay_Log_File: mysqld-relay-bin.000002 Relay_Log_Pos: 243 Relay_Master_Log_File: mysql-bin.000001 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: fms Replicate_Ignore_
For resolving the problems follow below steps: 1. Stop & Reset slave mysql> stop slave;mysql> reset slave; 2. Change log position & master log file name mysql> CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.0000xx', MASTER_LOG_POS=xxxx; 3. Start slave mysql> start slave; 4. Check slave status mysql> show slave status\G; Output include below output: Slave_IO_Running: YesSlave_SQL_Running: Yes Posted by Premchand Kumar Singh at 11:59 AM Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: Linux, MySQL No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Followers Blog Archive ► 2016 (1) ► 01/10 - 01/17 (1) ► 2015 (4) ► 12/20 - 12/27 (2) ► 11/22 - 11/29 (2) ► 2014 (2) ► 05/11 - 05/18 (1) ► 04/20 - 04/27 (1) ► 2013 (20) ► 09/15 - 09/22 (1) ► 07/14 - 07/21 (1) ► 07/07 - 07/14 (1) ► 06/30 - 07/07 (1) ► 06/23 - 06/30 (6) ► 06/16 - 06/23 (9) ► 02/17 - 02/24 (1) ▼ 2012 (18) ► 12/23 - 12/30 (1) ► 12/16 - 12/23 (2) ► 07/08 - 07/15 (7) ► 05/20 - 05/27 (2) ► 05/13 - 05/20 (1) ► 04/01 - 04/08 (1) ► 03/25 - 04/01 (1) ► 03/18 - 03/25 (1) ▼ 01/22 - 01/29 (2) HOW TO CONFIGURE FTP IN WINDOWS XP ? ERROR 1201 (HY000): Could not initialize master in... ► 2011 (10) ► 11/13 - 11/20 (1) ► 10/16 - 10/23 (1) ► 09/04 - 09/11 (1) ► 08/28 - 09/04 (2) ► 08/21 - 08/28 (4) ► 08/07 - 08/14 (1) About Me Premchand Kumar Singh Senior Consultant with more than 8 years of experience in IT Sectors and more than 7 years' experience in Software Training, I have showed capacity to lead projects about Infrastructure, IT Security and System Administration. I am expert focused in strategy with solid technical knowledge, multidisciplinary, self-starter, able to assume risks with responsibility, skills to adapt to new technologies and propose ideas. View my complete profile Simple template. Powered by Blogger.