
You can also SSH into your instance and find the login credential using the following command.
$ cat /home/ec2-user/credentials /////////////////////////credentials info ///////////////////////// — — MariaDB — — — User : root — — — Password : **************** ////////////////////////////////////////////////////////////////
If you find ‘setting error’ message, please try to set the root password according to following documentation below.
Tutorial: Install a LAMP Web Server on Amazon Linux 2 | 2. Run mysql_secure_installation.
If MySQL database is not already installed, use this command to install.
$ sudo mysql_secure_installation