I set up a couple of maraidb v10.2.10
containers with the official docker image. Master can read/write and slave is read-only with this my.cnf.
[mysqld]
server_id=2
read_only=1
innodb_read_only=1
Replication was working well for a while but it stopped with the following error:
Slave_IO_Running: Yes
Slave_SQL_Running: No
Last_Errno: 1942
Last_Error: Error during COMMIT: failed to update GTID state in mysql.gtid_slave_pos: 1036: Table 'gtid_slave_pos' is read only
I added this line into slave's my.cnf and set it up again from the beginning but still got the same error.
replicate-ignore-table=mysql.gtid_slave_pos
Does this mean that Innodb can't replicate to innodb-read-only
server?