MySQLレプリケーション設定

できた。

ここを参考にした。

テーブル別のレプリケーション設定。

マスターDBをMacOS X 10.6 IP:192.168.0.4
スレーヴDBをCentOS5.3(on VMware Fusion) IP:192.168.0.5
にした。

スレーヴ側は参照(SELECT)専用で、更新などを行ってはいけない。

マスターDBにはFTP設定をしていなかったため、
MasterのデータベースをSlaveにコピーする際には
Slave側で
root# wget http://192.168.0.4/testDB.tar
とした。

設定中、Slave側でSelectをしたらエラー。readできないと。

展開後、パーミッション、グループ、オーナーが違っているので、
chmod,chgrp,chownで他のを参考に同じにした。

コメントをどうぞ

Commenting rules

  • Try to keep your comments as relevant as possible.
  • No HTML/JavaScript/BBcode.
  • Don't be abusive: No racism, homophobia or any other nastiness.
  • Feel free to express your opinion, but do so in an eloquent way.

If you do not respect these rules your comments may be edited or even deleted.