Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1562

Slave_IO_Running =NO (no replies)

$
0
0
hi all;

i have master-master replication ;

on server 1 ;

mysql> show slave status \G;
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: server2
Master_User: root
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: server2-bin.000026
Read_Master_Log_Pos: 106
Relay_Log_File: server1-relay-bin.000134
Relay_Log_Pos: 4
Relay_Master_Log_File: server2-bin.000026
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 106
Relay_Log_Space: 21478
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
1 row in set (0.00 sec)

ERROR:
No query specified

mysql>


on server 2:


mysql> show slave status \G;
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: server1
Master_User: root
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: server1-bin.000029
Read_Master_Log_Pos: 106
Relay_Log_File: server2-relay-bin.000158
Relay_Log_Pos: 4
Relay_Master_Log_File: server1-bin.000029
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 106
Relay_Log_Space: 18202
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
1 row in set (0.00 sec)

ERROR:
No query specified

mysql>



i try to stop and start slave on both server . but still same problem.
i can connect to db on both server to the other server ;

on server 1 ;
mysql -uroot -p(password) -h server2
on server 2;
mysql -uroot -p(password) -h server1

there is no problem.


on server1 err log when i stop and start the slave ;


101019 11:26:37 [Note] Slave I/O thread: connected to master 'root@server2:3306',replication started in log 'server2-bin.000026' at position 106
101019 11:26:37 [ERROR] Error reading packet from server: Could not find first log file name in binary log index file ( server_errno=1236)
101019 11:26:37 [ERROR] Got fatal error 1236: 'Could not find first log file name in binary log index file' from master when reading data from binary log
101019 11:26:37 [Note] Slave I/O thread exiting, read up to log 'server2-bin.000026', position 106
101019 11:26:37 [Note] Slave SQL thread initialized, starting replication in log 'server2-bin.000026' at position 106, relay log './server1-relay-bin.000134' position: 4


on server2 err log when i stop and start the slave ;

101019 11:18:55 [Note] Error reading relay log event: slave SQL thread was killed
101019 11:19:00 [Note] Slave SQL thread initialized, starting replication in log 'server1-bin.000029' at position 106, relay log './server2-relay-bin.000158' position: 4
101019 11:19:00 [Note] Slave I/O thread: connected to master 'root@server1:3306',replication started in log 'server1-bin.000029' at position 106
101019 11:19:00 [ERROR] Error reading packet from server: Could not find first log file name in binary log index file ( server_errno=1236)
101019 11:19:00 [ERROR] Got fatal error 1236: 'Could not find first log file name in binary log index file' from master when reading data from binary log
101019 11:19:00 [Note] Slave I/O thread exiting, read up to log 'server1-bin.000029', position 106

do i have to recreate replication ?
or what i have to do ??

thanks....

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>