差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:quickguides:ha_percona_xtradb [2022/05/30 06:12] – [Changes to the Pandora FMS schema for its correct operation] junichi | ja:quickguides:ha_percona_xtradb [2023/09/27 04:25] (現在) – [以前のデータがある環境における変更の適用] junichi | ||
---|---|---|---|
行 4: | 行 4: | ||
[[: | [[: | ||
+ | |||
行 381: | 行 382: | ||
正しく動作させるには、これらの変更をスキーマのみのデータが入っていないデータベースに適用する必要があります。 | 正しく動作させるには、これらの変更をスキーマのみのデータが入っていないデータベースに適用する必要があります。 | ||
- | ===== Applying changes in an environment with previous data ===== | + | ===== 以前のデータがある環境における変更の適用 |
In this scenario, it is necessary to rebuild the tables where the necessary modifications have been added to avoid deadlocks in the environment. The process would be as follows: | In this scenario, it is necessary to rebuild the tables where the necessary modifications have been added to avoid deadlocks in the environment. The process would be as follows: | ||
+ | |||
+ | このシナリオは、デッドロックを回避するために、すでにデータが入っているテーブルに対して変更を適用して再構築する場合の例です。処理は次のようになります。 | ||
1.- '' | 1.- '' | ||
+ | |||
+ | 1.- DROP および create TABLE フィールドを除く、個別に関係するすべてのテーブルを'' | ||
+ | |||
< | < | ||
#mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> | #mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> | ||
行 396: | 行 402: | ||
2.- Delete the affected tables: | 2.- Delete the affected tables: | ||
+ | |||
+ | 2.- 影響のあるテーブルを削除します。 | ||
< | < | ||
行 407: | 行 415: | ||
3.- Create again all the tables with all the '' | 3.- Create again all the tables with all the '' | ||
+ | |||
+ | 3.- 環境が問題なく動作するように、新しい列を含むすべてのテーブルを '' | ||
4.- Incorporate with **source** all the '' | 4.- Incorporate with **source** all the '' | ||
+ | |||
+ | 4.- 手順1 で作成したすべての '' | ||
+ | |||
< | < | ||
#mysql -u root -p pandora | #mysql -u root -p pandora | ||
行 419: | 行 432: | ||
</ | </ | ||
- | At the end of the process, all the tables will have the incremental | + | At the end of the process, all the tables will have the incremental |
- | [[: | + | 処理が終わると、すべてのテーブルに、最初から作成されたインクリメンタル ID が含まれます。 |
+ | [[: | ||