ja:quickguides:ha_percona_xtradb

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:quickguides:ha_percona_xtradb [2022/05/30 06:12] – [Changes to the Pandora FMS schema for its correct operation] junichija:quickguides:ha_percona_xtradb [2023/09/27 04:25] (現在) – [以前のデータがある環境における変更の適用] junichi
行 4: 行 4:
  
 [[:ja:quickguides:start|クイックガイド一覧に戻る]] [[:ja:quickguides:start|クイックガイド一覧に戻る]]
 +
  
  
行 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.- ''DUMP'' (export data) all the tables involved separately, excluding the DROP and create TABLE fields: 1.- ''DUMP'' (export data) all the tables involved separately, excluding the DROP and create TABLE fields:
 +
 +1.- DROP および create TABLE フィールドを除く、個別に関係するすべてのテーブルを'' DUMP'' (データのエクスポート) します。
 +
 <code> <code>
 #mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> tagent_access.sql #mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> tagent_access.sql
行 396: 行 402:
  
 2.- Delete the affected tables: 2.- Delete the affected tables:
 +
 +2.- 影響のあるテーブルを削除します。
  
 <code> <code>
行 407: 行 415:
  
 3.- Create again all the tables with all the ''ALTER'' and with all the new columns so that the environment works without problems. To create the tables again it is necessary to use the create table of the file ''/var/www/html/pandora_console/pandoradb.sql'' of the tables ''tagent_access'', ''tagente_datos_inc'', ''tagente_datos_string'', ''tagente_datos_inventory''. 3.- Create again all the tables with all the ''ALTER'' and with all the new columns so that the environment works without problems. To create the tables again it is necessary to use the create table of the file ''/var/www/html/pandora_console/pandoradb.sql'' of the tables ''tagent_access'', ''tagente_datos_inc'', ''tagente_datos_string'', ''tagente_datos_inventory''.
 +
 +3.- 環境が問題なく動作するように、新しい列を含むすべてのテーブルを ''ALTER'' で再度作成します。 テーブルを再度作成するには、テーブル作成が記載されているファイル ''/var/www/html/pandora_console/pandoradb.sql'' の ''tagent_access''、''tagente_datos''、''tagente_datos_inc''、''tagente_datos_string''、''tagente_datos_inventory'' を利用し、[[:ja:quickguides:ha_percona_xtradb#正しい動作のための_pandora_fms_スキーマの変更|正しい動作のための Pandora FMS スキーマの変更]] の内容を実施します。
  
 4.- Incorporate with **source** all the ''DUMP'' data created in step 1. 4.- Incorporate with **source** all the ''DUMP'' data created in step 1.
 +
 +4.- 手順1 で作成したすべての ''DUMP'' データを **source** で読み込みます。
 +
 <code> <code>
 #mysql -u root -p pandora #mysql -u root -p pandora
行 419: 行 432:
 </code> </code>
  
-At the end of the process, all the tables will have the incremental ids created from in all of them.+At the end of the process, all the tables will have the incremental IDs created from scratch in all of them.
  
-[[:ja:quickguides:start|クガイド一覧に戻る]]+処理が終わると、すべてのテーブルに、最初から作成されたリメンタル ID が含まれます。
  
 +[[:ja:quickguides:start|クイックガイド一覧に戻る]]
  
  • ja/quickguides/ha_percona_xtradb.1653891154.txt.gz
  • 最終更新: 2022/05/30 06:12
  • by junichi