I’ve got bit of script that creates a table on a MySQL master, fills it with data, does some work on the data and then drops the table again.
I don’t want all this to be replicated to the slaves, as it is a waste of time. Is there any way to tell the slave to have nothing to do with this table, either by doing something clever in the CREATE TABLE statement itself or by setting a config command that states something like “Don’t replicate any table beginning with ‘temp_'” (the table name is dynamic to allow for multiple users, but it always starts with temp_).
Of course, using a proper temporary table would be perfect, but unfortunately I need to reference the table multiple times in one query, which MySQL doesn’t allow.
there is an option for this,
but i not sure you will prefer this (require restart)
more details