This article explains how to install phpMyAdmin on Ubuntu 20.04 Server and connect the same with your AWS RDS MySQL instances. You can also use following method on any previous Ubuntu release.
The next screen which asks, “want to configure the database for phpMyAdmin with dbconfig-common?”. Select “Yes” and hit Enter.
$i++;
$cfg['Servers'][$i]['host'] = 'RDS MYSQL ENDPOINT';//Enter IP address or hostname
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli'; // Extension to connect to the database.
$cfg['Servers'][$i]['port'] = ''; //The port number of MySQL service $cfg['Servers'][$i]['user'] = ''; // Username to connect
$cfg['Servers'][$i]['password'] = ''; //Password associated with the username
In RDS Security group open inbound port 3306 to give phpMyAdmin access to MySQL. You can give which IP address of the server where phpMyAdmin is installed in the Security group.
Now log in to phpMyAdmin using the password you created by visiting the URL: https:///phpmyadmin.