**目次 [#k75caf7a]
#contents
**設定手順 [#f2335cef]

-レプリケーション用ユーザの作成
 GRANT REPLICATION SLAVE ON *.* TO 【アカウント】@localhost IDENTIFIED BY '【パスワード】';

-my.cnf (DB 1台目)
 [mysqld]
 log-bin
 server-id=1
 binlog-ignore-db=mysql
 auto_increment_increment=2
 auto_increment_offset=1
 sync_binlog=1 
 master-host=【レプリケーション先(DB 2台目)】
 master-user=【アカウント】
 master-password=【パスワード】

-my.cnf (DB 2台目)
 [mysqld]
 log-bin
 server-id=2
 binlog-ignore-db=mysql
 auto_increment_increment=2
 auto_increment_offset=2
 sync_binlog=1
 master-host=【レプリケーション先(DB 1台目)】
 master-user=【アカウント】
 master-password=【パスワード】


**参考資料 [#kfacaa26]
http://dev.mysql.com/doc/refman/5.1/ja/replication.html
http://www.irori.org/doc/mysql-rep.html
http://d.hatena.ne.jp/end0tknr/20090202/1233557966
http://www.open-source-network.info/archives/3
http://www.usamimi.info/~sakura/cgi-bin/blog/article.php?id=96

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS