platformAdmin データベース ユーザー パスワードの変更
platformAdmin.databasePassword を変更するには、次の手順を実行します。
注: コマンドの実行時に、Splunk AppDynamics オンプレミス プラットフォームのインストールを所有するアプリケーション ID を使用します。
- Enterprise Console が実行していない場合は起動します。次のコマンドを実行します。コマンドを実行する前に
<EC_home>を置き換えてください。<EC_home>/platform/platform-admin/bin: ./platform-admin.sh start-platform-admin - <EC_home>/platform/mysql/bin ディレクトリに移動します。
- 次のコマンドを実行して、ルートユーザとしてデータベースにログインします。
./mysql -u root -p -h 127.0.0.1 -P 3377 --protocol=TCP - 次のクエリを実行します。クエリの実行前に
<new_password_here>を置き換えてください。update mysql.user set authentication_string=password('<new_password_here>') where user like 'platformadmin%'; flush privileges; quit; <EC_home>/Platform/mysql/binディレクトリで次のコマンドを実行し、ログインを確認します。./mysql -u platformadmin -p -P 3377 -h 127.0.0.1- <EC_home>/platform/platform-admin/bin ディレクトリに移動します。
- ステップ 4 で
platformadminに設定された新しいパスワードを暗号化するには、次のコマンドを実行します。./platform-admin.sh encrypt --text '<new_password_here>'注: Windows 環境では、コマンドラインで一重引用符(')はサポートされていません。Windows ユーザーは、<new_password_here>オプションを二重引用符(")で囲む必要があります。暗号化されたパスワードをメモします。
- <EC_home>/Platform/platform-admin/conf ディレクトリに移動します。
PlatformAdminApplication.ymlファイルをバックアップします。- vi などのテキストエディタを使用して、
PlatformAdminApplication.ymlファイルを開き、暗号化された password: 行を database: セクションで見つけます。 - 暗号化されたパスワードを更新し、password: エントリの後のテキストを、ステップ 7 の後にメモしたパスワードに置き換え、変更を保存します。
<EC_home>/Platform/platform-admin/bin directoryで次のコマンドを実行し、Enterprise Console を停止します。./platform-admin.sh stop-platform-admin<EC_home>/Platform/platform-admin/bin directoryで次のコマンドを実行し、Enterprise Console を起動します。./platform-admin.sh start-platform-admin- Enterprise Console が正常に起動したことを確認します。