データベース ルート ユーザ パスワードの変更

platformAdmin.databaseRootPassword を変更するには、次の手順を実行します。

  1. <EC_home>/Platform/platform-admin/bin で次のコマンドを実行し、Enterprise Console を停止します。
    bin/platform-admin.sh stop-platform-admin
  2. <EC_home>/Platform/mysql/bin で次のコマンドを実行します。
    bin/mysqld --defaults-file="/<EC_home>/Platform/mysql/db.cnf" --skip-grant-tables

    コマンドを実行する前に、<EC_home> を置き換えてください。

  3. 新しいコマンドプロンプトウィンドウを開きます。
  4. <EC_home>/Platform/mysql/bin で次のコマンドを実行することで、パスワードを使用せずにデータベースに接続します。
    bin/mysql -u root -h 127.0.0.1 -P 3377 --protocol=TCP
  5. 次のクエリを実行します。
    update mysql.user set authentication_string=password('<new_password_here>') where user like 'root%';
    flush privileges;
    quit;

    クエリを実行する前に、<new_password_here> を置き換えてください。

  6. コマンドプロンプトを終了します。
  7. <EC_home>/Platform/platform-admin/bin で次のコマンドを実行し、Enterprise Console データベースを停止します。
    bin/platform-admim.sh stop-platform-admin
    警告: これにより、MySQL DB を停止し、次の手順の --skip-grant-tables オプションを使用せずに起動します。
  8. <EC_home>/Platform/platform-admin/bin で次のコマンドを実行し、Enterprise Console を起動します。
    bin/platform-admin.sh start-platform-admin
  9. <EC_home>/Platform/mysql/bin で次のコマンドを実行し、ログインを確認します。
    bin/mysql -u root -p -P 3377 -h 127.0.0.1