Replica has read all relay log; waiting for more updates
Master_Retry_Count
86400
Auto_Position
0
SHOW SLAVE STATUS #2
Field
Value
Slave_IO_State
Waiting for source to send event
Master_Host
mysql-m
Master_User
linnyk
Master_Port
3306
Connect_Retry
60
Master_Log_File
mysql-bin.000005
Read_Master_Log_Pos
13626801
Relay_Log_File
mysql-relay-bin.000005
Relay_Log_Pos
13606255
Relay_Master_Log_File
mysql-bin.000005
Slave_IO_Running
Yes
Slave_SQL_Running
Yes
Exec_Master_Log_Pos
13606040
Relay_Log_Space
13627393
Seconds_Behind_Master
1
Master_Server_Id
1
Master_UUID
ccad5c25-80ab-11ef-a5f6-0242ac130002
Slave_SQL_Running_State
Reading event from the relay log
Master_Retry_Count
86400
Auto_Position
0
SHOW SLAVE STATUS #3
Field
Value
Slave_IO_State
Queueing source event to the relay log
Master_Host
mysql-m
Master_User
linnyk
Master_Port
3306
Connect_Retry
60
Master_Log_File
mysql-bin.000005
Read_Master_Log_Pos
13771920
Relay_Log_File
mysql-relay-bin.000005
Relay_Log_Pos
13718345
Relay_Master_Log_File
mysql-bin.000005
Slave_IO_Running
Yes
Slave_SQL_Running
Yes
Exec_Master_Log_Pos
13718130
Relay_Log_Space
13772512
Seconds_Behind_Master
0
Master_Server_Id
1
Master_UUID
ccad5c25-80ab-11ef-a5f6-0242ac130002
Slave_SQL_Running_State
Replica has read all relay log; waiting for more updates
Master_Retry_Count
86400
Auto_Position
0
SHOW SLAVE STATUS #4
Field
Value
Slave_IO_State
Waiting for source to send event
Master_Host
mysql-m
Master_User
linnyk
Master_Port
3306
Connect_Retry
60
Master_Log_File
mysql-bin.000005
Read_Master_Log_Pos
13915510
Relay_Log_File
mysql-relay-bin.000005
Relay_Log_Pos
13886723
Relay_Master_Log_File
mysql-bin.000005
Slave_IO_Running
Yes
Slave_SQL_Running
Yes
Exec_Master_Log_Pos
13886508
Relay_Log_Space
13916102
Seconds_Behind_Master
0
Master_Server_Id
1
Master_UUID
ccad5c25-80ab-11ef-a5f6-0242ac130002
Slave_SQL_Running_State
Replica has read all relay log; waiting for more updates
Master_Retry_Count
86400
Auto_Position
0
Try to turn off mysql-s1 (stop slave),
Stoped mysql-s1 but nothing happened with master and slave 2
Try to remove a column in database on slave node (try to delete last column and column from the middle)
altertable users
drop column password;
Received errors on master node
2024-10-02T12:03:46.197341Z 9 [ERROR] [MY-013146] [Repl] Slave SQL for channel '': Worker 1 failed executing transaction 'ANONYMOUS' at master log mysql-bin.000005, end_log_pos 24224803; Column 2 of table 'mydb.users' cannot be converted from type'varchar(200(bytes))' to type'date', Error_code: MY-013146
2024-10-02T12:03:46.201398968Z 2024-10-02T12:03:46.201194Z 6 [ERROR] [MY-010586] [Repl] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql-bin.000005' position 24177459
Write conclusion
Even though I thought it's easy to setup the replication with three nodes, I faced with troubles of user permission
configuration and replication errors. But after some time I managed to setup the replication and test it. I also tried
to stop one of the slave nodes and remove a column from the table on the slave node. It caused errors on the master
node.