ホーム

Lightsail - change Initial password in WordPress

environment

  • aws
  • mac
  • Terminal
  • ssh
  • Lightsail
  • linux
  • Password

Introduction

I made a simple WordPress on Lightsail. It is assumed that ssh is connected from the terminal of mac. I would like to write as a memorandum about how to change the initial password for entering MySQL.

実装

does not enter

 mysql -u root

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

I do not know the password

$ mysql -u root -p
Enter password: 

Check the initial password and re-enter mysql -u root-p once more

sudo cat /home/bitnami/bitnami_application_password

Set a password

SET PASSWORD FOR root@localhost=PASSWORD('hoge');

reference

IMPORTANT: Drupal Security Vulnerability SA-CORE-2018-002

MySQLのPasswordと権限の設定 · GitHub

-ホーム

Copyright© off , 2020 All Rights Reserved Powered by AFFINGER5.