データベース ルート ユーザ パスワードの変更
platformAdmin.databaseRootPassword を変更するには、以下の手順に従います。
<EC_home>/Platform/platform-admin/binで次のコマンドを実行し、Enterprise Console を停止します。CODEbin/platform-admin.sh stop-platform-admin<EC_home>/Platform/mysql/binで以下のコマンドを実行します。CODEbin/mysqld --defaults-file="/<EC_home>/Platform/mysql/db.cnf" --skip-grant-tablesコマンドを実行する前に、
<EC_home>を置き換えてください。- 新しいコマンドプロンプトウィンドウを開きます。
<EC_home>/Platform/mysql/binで次のコマンドを実行することで、パスワードを使用せずにデータベースに接続します。CODEbin/mysql -u root -h 127.0.0.1 -P 3377 --protocol=TCP- 次のクエリを実行します。
- 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>';
- コマンドプロンプトを終了します。
<EC_home>/Platform/platform-admin/binで次のコマンドを実行し、Enterprise Console データベースを停止します。CODEbin/platform-admim.sh stop-platform-admin警告: これにより、MySQL DB を停止し、次の手順の--skip-grant-tablesオプションを使用せずに起動します。<EC_home>/Platform/platform-admin/binで次のコマンドを実行し、Enterprise Console を起動します。CODEbin/platform-admin.sh start-platform-admin<EC_home>/Platform/mysql/binで次のコマンドを実行し、ログインを確認します。CODEbin/mysql -u root -p -P 3377 -h 127.0.0.1