ja:documentation:pandorafms:technical_annexes:46_mysql_sha

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_annexes:46_mysql_sha [2025/01/22 08:12] – [Customer configuration] junichija:documentation:pandorafms:technical_annexes:46_mysql_sha [2025/03/10 07:40] (現在) – [概要] junichi
行 8: 行 8:
 ===== 概要 ===== ===== 概要 =====
  
-As of MySQL version 8 the hashing of database user passwords [[https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password|has been changed by default]] to ''caching_sha2_password''. This method encompasses both obsolete protocols (SHA 256), as well as current and future protocols, combined with the caching capability of the entire encryption mechanism and valid comparison of user credentials.+As of MySQL version 8,  database user password hashing [[https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password|has been changed by default]] to ''caching_sha2_password''. This method encompasses both obsolete protocols (SHA 256), as well as current and future protocols, combined with the caching capability of the entire encryption mechanism and valid comparison of user credentials.
  
 MySQL バージョン 8 以降、データベースユーザパスワードのハッシュはデフォルトで [[https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password|]] ''caching_sha2_password'' に変更されました。この方法は、廃止されたプロトコル (SHA 256) と現在のプロトコルおよび将来のプロトコルの両方を網羅し、暗号化メカニズム全体のキャッシュ機能とユーザ資格情報の有効な比較を組み合わせます。 MySQL バージョン 8 以降、データベースユーザパスワードのハッシュはデフォルトで [[https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password|]] ''caching_sha2_password'' に変更されました。この方法は、廃止されたプロトコル (SHA 256) と現在のプロトコルおよび将来のプロトコルの両方を網羅し、暗号化メカニズム全体のキャッシュ機能とユーザ資格情報の有効な比較を組み合わせます。
行 174: 行 174:
  
 You must have the ''mariadb-connector-c'' package installed, which is installed by default in most EL8 and EL9 environments. You must have the ''mariadb-connector-c'' package installed, which is installed by default in most EL8 and EL9 environments.
 +
 +ほとんどの EL8 および EL9 環境ではデフォルトでインストールされている ''mariadb-connector-c'' パッケージがインストールされている必要があります。
  
 The file is checked for existence with: The file is checked for existence with:
 +
 +ファイルの存在は次のように確認できます:
  
 <code bash> <code bash>
行 183: 行 187:
  
 A positive response similar to the following will be obtained: A positive response similar to the following will be obtained:
 +
 +次のような応答が得られます。
  
 {{ :wiki:pfms_46_mysql_sha_image_030.png  }} {{ :wiki:pfms_46_mysql_sha_image_030.png  }}
  
 The next step is to create a symbolic link to that file with the command: The next step is to create a symbolic link to that file with the command:
 +
 +次のステップは、次のコマンドを使用してそのファイルへのシンボリックリンクを作成することです。
  
 <code bash> <code bash>
行 194: 行 202:
  
 The link made with is checked: The link made with is checked:
 +
 +作成されたリンクは次のように確認します:
  
 <code bash> <code bash>
行 201: 行 211:
  
 The following positive response was obtained: The following positive response was obtained:
 +
 +次のような応答が得られます。
  
 {{ :wiki:pfms_46_mysql_sha_image_040.png  }} {{ :wiki:pfms_46_mysql_sha_image_040.png  }}
行 206: 行 218:
 With all steps successfully completed, [[#ks5|only the PFMS server restart]] remains. With all steps successfully completed, [[#ks5|only the PFMS server restart]] remains.
  
 +すべての手順が正常に完了したら、あとは [[#ks5|PFMS サーバの再起動]] のみです。
  
 <wrap #ks4_2 /> <wrap #ks4_2 />
 +
 ==== Ubuntu ==== ==== Ubuntu ====
  
 The ''libmariadb3'' package must be installed. Depending on the version installed it may not come with the operating system and must be installed with the command: The ''libmariadb3'' package must be installed. Depending on the version installed it may not come with the operating system and must be installed with the command:
 +
 +''libmariadb3'' パッケージをインストールする必要があります。インストールされたバージョンによっては、オペレーティングシステムに付属していない場合があります。その場合は、次のコマンドを使用してインストールする必要があります。
  
 <code bash> <code bash>
行 218: 行 234:
  
 It is verified that the required file has been generated with the installation of the package, ''caching_sha2_password.so'': It is verified that the required file has been generated with the installation of the package, ''caching_sha2_password.so'':
 +
 +パッケージ ''caching_sha2_password.so'' のインストールにより、必要なファイルが生成されたことが確認できます。
  
 <code bash> <code bash>
行 224: 行 242:
  
 The destination folder ''/usr/lib64/mysql/plugin/'' must be created with the command: The destination folder ''/usr/lib64/mysql/plugin/'' must be created with the command:
 +
 +次のコマンドを使用して、フォルダ ''/usr/lib64/mysql/plugin/'' を作成する必要があります。
  
 <code bash> <code bash>
行 231: 行 251:
  
 Now the symbolic link must be created: Now the symbolic link must be created:
 +
 +ここで、シンボリックリンクを作成する必要があります。
  
 <code bash> <code bash>
行 237: 行 259:
  
 With these steps the server will be able to use SHA2 authentication to connect to the database. Go to [[#ks5|next step (restart Pandora FMS server)]] to finish the configuration. With these steps the server will be able to use SHA2 authentication to connect to the database. Go to [[#ks5|next step (restart Pandora FMS server)]] to finish the configuration.
 +
 +この手順により、サーバは SHA2 認証を使用してデータベースに接続できるようになります。[[#ks5|次のステップ (Pandora FMS サーバの再起動)]] に進み、設定を完了します。
  
 <wrap #ks5 /> <wrap #ks5 />
-===== Restart PFMS server =====+ 
 +===== PFMS サーバの再起動 =====
  
 To be executed: To be executed:
 +
 +以下を実行します:
  
 <code bash> <code bash>
行 249: 行 276:
  
 After a few moments, the status must be confirmed via the Web Console. (menú <wrap :en>**Management → Servers → Manage servers**</wrap>): After a few moments, the status must be confirmed via the Web Console. (menú <wrap :en>**Management → Servers → Manage servers**</wrap>):
 +
 +しばらくしたら、Web コンソールからステータスを確認します。(メニュー <wrap :ja>**管理(Management) → サーバ(Servers) → サーバの管理(Manage servers)**</wrap>):
  
 {{ :wiki:pfms_46_mysql_sha_image_050.png  }} {{ :wiki:pfms_46_mysql_sha_image_050.png  }}
  
 [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
 +
  • ja/documentation/pandorafms/technical_annexes/46_mysql_sha.1737533547.txt.gz
  • 最終更新: 2025/01/22 08:12
  • by junichi