Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

what is the syntax of replicate_*_table without having to modify my.cnf file? and do i need to restart mysqld for changes to be applied

share|improve this question
up vote 2 down vote accepted

Unfortunately the replicate-do|ignore-db|table variables cannot be set dynamically. In fact, they're a bit weird, since they're not even presented in SHOW GLOBAL VARIABLES output.

So you have to specify these params in the my.cnf file.

Just as final note, regardless of these particular params, whenever you set a global variables dynamically (e.g. SET GLOBAL sql_mode := 'TRADITIONAL') and then restart the mysqld server -- your changes are lost. Whenever the server starts up, it's what's written in the config file that takes place. No persistence for online changes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.