Take the 2-minute tour ×
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. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.