コントローラ データベース ルート ユーザ パスワードの変更

デフォルトでは、Splunk AppDynamics デプロイメントで使用される Aurora データベースのコントローラユーザーのパスワードは controller です。

コントローラ データベース ルートユーザー パスワードを変更するには、次の手順を実行します。

  1. root として RDS インスタンスにログインします。
    1. ./mysql -u root -h <rds-aurora-endpoint> -P 3388 -p
  2. MySQL を使用して、以下のコマンドを実行します。
    1. コントローラデータベースを指定するには、use mysql; と入力します。
    2. MySQL の権限テーブルを再度読み込むには、FLUSH PRIVILEGES; と入力します。
    3. MySQL のバージョンを確認するには、select version(); と入力します。
    4. MySQL バージョン 5.5 を使用している場合、ルートユーザーの新しいパスワードを設定するには、update mysql.user set password=password('<new-password-here>') where user like 'controller%'; と入力します。
    5. MySQL バージョン 5.7 を使用している場合、ルートユーザーの新しいパスワードを設定するには、update mysql.user set authentication_string=password('<new-password-here>') where user like 'controller%'; と入力します。
    6. MySQL の権限テーブルを再度読み込むには、FLUSH PRIVILEGES; と入力します。
    7. MySQL を終了するには、quit と入力します。
  3. controller-db-password エイリアスを、Glassfish の新しいコントローラ DB パスワードで更新します。
    cd <controller_home>/appserver/glassfish/bin
    ./asadmin update-password-alias controller-db-password
  4. コントローラ AppServer を再起動して、変更を有効にします。
    cd <controller_home>/bin
    ./controller.sh stop-appserver
    ./controller.sh start-appserver
  5. asadmin で変更を確認します。
    cd <controller_home>/appserver/glassfish/bin
    ./asadmin ping-connection-pool controller_mysql_pool