AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS LEMP with PHP 7.4 on Amazon Linux 2
  5. DB Server Password

DB Server Password

You can find the password from EC2 management console System Log.

  1. Go to Amazon EC2 console at
  2. Chose your Instance and Click Actions → Instance Settings → Get System log

Get System log

LEMP PHP74 Get system log

You can also SSH into your instance and find the login credential using the following command.

$ cat /home/centos/credentials 
////////////////////credentials info////////////////////
--- phpMyAdmin
----- Setting  : Success
--- MariaDB
----- User     : root
----- Password : ****************
Was this article helpful to you? Yes No

How can we help?