[MDEV-31712] replication to slave not working, relay log on slave is NOT corrupt Created: 2023-07-16 Updated: 2023-07-17 Resolved: 2023-07-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.9.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | malcolm taylor | Assignee: | Kristian Nielsen |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos7 |
||
| Description |
|
i have the following set up on MASTER server -
the following set up on SLAVE server -
The relay-bin file update ARE copying to the slave server and mysqlbin on the relay log does not show any problems, but the relay logs are NOT being applied for some reason.
|
| Comments |
| Comment by Kristian Nielsen [ 2023-07-16 ] |
|
From https://mariadb.com/kb/en/replication-filters/#replicate_do_db: "on the command-line or in a server option group in an option file, the system variable does not accept a comma-separated list. If you would like to specify multiple filters, then you need to specify the system variable multiple times." When you say the slave is setup with "replicate-do-db=live1,test1", is that in the configuration file? In that case you need to split it into two as described in the documentation link. Otherwise the configuration will ignore everything but the single database schema named "live1,test", which does not exist so nothing will be applied. |
| Comment by malcolm taylor [ 2023-07-16 ] |
|
Hi @kristian ahhhh thats it! Im sure i had done with commas before (maybe on an old version of mysql i cant remember now), but anyway yes thanks this solves the problem ive just tried it now. thanks so much for your help! |
| Comment by malcolm taylor [ 2023-07-16 ] |
|
the other thing i had done wrong was in the /etc/my.cnf i had put it in wrong replicate-do-db is incorrect (i saw from your link) i should have put replicate_do_db with underscores. im not sure how to close this issue, i cant see an option to do so.... |
| Comment by Kristian Nielsen [ 2023-07-17 ] |
|
Glad that you got it solved, I'll close it. - Kristian. |