Connect AWS RDS MySQL instance with phpMyAdmin

Chetan Bothra
Mar 30, 2021

Step 1 : Get the latest version of phpMyAdmin from https://www.phpmyadmin.net/downloads/

Step 2 : Wget the file in your work directory

cd /var/www/html/   #move to work directorywget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-english.tar.gz   #Downlaod the version in ur serverunzip phpMyAdmin-5.1.0-english.tar.gz #unzip the downloaded versionmv phpMyAdmin-5.1.0-english phpmyadmin #Rename properly for easy accesscd phpmyadmin #goto the new foldermv config.sample.inc.php config.inc.php #move the config file to take effect

Step 3 : Changing config to access RDS

vim config.inc.php/* RDS parameters */$i++;
$cfg['Servers'][$i]['host'] = 'RDS Hostname';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';

Step 4 : Restart apache2

sudo service apache2 restart

Access phpMyAdmin from your local browser. Enter http://SERVER_IP/phpMyAdmin enter username and password of your RDS. and access it.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Chetan Bothra
Chetan Bothra

Written by Chetan Bothra

AWS Certified | GCP | DevOps | SRE | Docker | DevSecOps | Kubernetes | Automation | Terraform | Serverless | Blockchain

No responses yet

Write a response