How to connect to remote DB in local phpMyAdmin (WAMP)?

delux picture delux · Oct 22, 2015 · Viewed 11.1k times · Source

I'm using WAMP server with MySQL Version : 5.6.17. Is there a way to connect to remote DB from my local phpMyAdmin?

I have credentials for remote database, but I can not find a way how to add a connection in my local panel.

I found over the new that it is something related to some config file, or something called PMA, but couldn't found more details about it.

Answer

Kelvin Lai picture Kelvin Lai · Oct 22, 2015

In config.inc.php under your phpMyAdmin folder, change the value of $cfg['Servers'][$i]['host'] from 'localhost' to the ip address of your remote DB.

See http://docs.phpmyadmin.net/en/latest/config.html#cfg_Servers_host for details.