I had to stop the slave server to test something. After I started the server again there is a problem with replication on MySQL server
On the problematic server
mysql> SHOW SLAVE STATUS\G
*************************** 1. row ***************************
Slave_IO_State: Connecting to master
Master_Host: servera
Master_User: replica
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: servera-bin.000024
Read_Master_Log_Pos: 808459481
Relay_Log_File: serverb-relay-bin.000071
Relay_Log_Pos: 4
Relay_Master_Log_File: servera-bin.000024
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: 808459481
Relay_Log_Space: 106
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: 1129
Last_IO_Error: error connecting to master 'replica@servera:3306' - retry-time: 60 retries: 86400
Last_SQL_Errno: 0
Last_SQL_Error:
on the problematic server:
SELECT user, host FROM mysql.user WHERE Repl_slave_priv = 'Y';
+---------+-----------+
| user | host |
+---------+-----------+
| root | localhost |
| root | serverb |
| root | 127.0.0.1 |
| replica | servera |
| replica | serverb |
+---------+-----------+
on the main server:
SELECT user, host FROM mysql.user WHERE Repl_slave_priv = 'Y';
+---------+-----------+
| user | host |
+---------+-----------+
| root | localhost |
| root | servera |
| root | 127.0.0.1 |
| replica | servera |
| replica | serverb |
+---------+-----------+
according to what I've read, there is a need to execute the following command om the main server:
mysql> FLUSH HOSTS;
What will happen then? if there is any application connected to it - will it disconnect it also?
STOP SLAVE; START SLAVE;
. If theSlave_IO_Running
still says not, a new error message will appear in the error log. Please find it and post in your question.SHOW VARIABLES LIKE 'log_error';
What does it say ?