开发者

how to run a mysql command when mysql server startup?

i want to run a mysql command START SLAVE; is it possible开发者_Go百科 to do that?


As long as the master is properly configured it's ok to restart the slaves. They will automatically reissue the "START SLAVE" on restart.

I think if there are replication errors, you may have to fix them or reset replication before restarting the slaves.

http://dev.mysql.com/doc/refman/5.0/en/start-slave.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜