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

platformAdmin.databaseRootPassword を変更するには、以下の手順に従います。

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

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

  3. 新しいコマンドプロンプトウィンドウを開きます。
  4. <EC_home>/Platform/mysql/bin で次のコマンドを実行することで、パスワードを使用せずにデータベースに接続します。
    CODE
    bin/mysql -u root -h 127.0.0.1 -P 3377 --protocol=TCP
  5. 次のクエリを実行します。
    MySQL 5.5
    update mysql.user set password=password('<new-password-here>') where user like 'root%';
    MySQL 5.7
    update mysql.user set authentication_string=password('<new-password-here>') where user like 'root%';
    MySQL 8.0
    flush privileges;
    alter user 'root'@'localhost' identified by '<new-password-here>';
    alter user 'root'@'127.0.0.1' identified by '<new-password-here>';
    alter user 'root'@'::1' identified by '<new-password-here>';
  6. コマンドプロンプトを終了します。
  7. <EC_home>/Platform/platform-admin/bin で次のコマンドを実行し、Enterprise Console データベースを停止します。
    CODE
    bin/platform-admim.sh stop-platform-admin
    警告: これにより、MySQL DB を停止し、次の手順の --skip-grant-tables オプションを使用せずに起動します。
  8. <EC_home>/Platform/platform-admin/bin で次のコマンドを実行し、Enterprise Console を起動します。
    CODE
    bin/platform-admin.sh start-platform-admin
  9. <EC_home>/Platform/mysql/bin で次のコマンドを実行し、ログインを確認します。
    CODE
    bin/mysql -u root -p -P 3377 -h 127.0.0.1