I need to make a primary-secondary replication for some joomla portals. However, high traffic means that a lot of inserts, deletes and updates happen on the %_session tables, something that isn't really necessary to replicate.
So, I've added the following line to my primary's my.cnf file:
replicate-wild-ignore-table=%.%\_session
I've stopped and started the primary server, but when I check the bin.logs, I can see that all operations with _session tables are still recorded and prepared to be sent to the secondary.
So my question is, how do I force the primary to ignore any and all operations on tables that end in _session?