MySQL

A replication setup of MySQL

1.The snapshot of a master is prepared for the slave side.The dump file exported from the master is imported to the slave side like the procedure of "Distributed File of MySQL."2.A setup of a masterThe following is added to my.cnf.server-i…

MySQLのレプリケーション設定

1.マスターのスナップをスレーブ側に準備する。「MySQLのファイル分散」の手順と同じように、マスターからエクスポートしたdumpファイルをスレーブ側にインポートする。2.マスターの設定my.cnfに下記を追加。server-id = 100 MySQLサーバと重ならない任意の…

Distributed File of MySQL

Distributed file using InnoDB for a storage engine is set up. In my case, since the table etc. was already created, it worked including data shift.As a flow of work, it is as in general follows. 1.Export of data. 2.Back up data directory o…

MySQLのファイル分散

ストレージエンジンにInnoDBを利用した場合のファイル分散の設定を行う。 私の場合は既にテーブル等を作成してしまっていたため、データ移行を含めて作業を実施した。作業の流れとしては概ね下記のとおり。 1.データのエクスポート 2.既存データファイルの退…