Possible Duplicate:
connect to external server by using php myAdmin
My web host provides databases on separate servers, so "localhost" isn't an option for me. How do I setup phpMyAdmin configuration storage to use an external server?
I tried:
$cfg['Servers'][$i]['pmadb'] = 'dbname.dbserver.host.com';
and
$cfg['Servers'][$i]['pmadb'] = 'dbname@dbserver.host.com';
but those did not work. Any suggestions?
Here's my setup...
FreeBSD 7.3-RELEASE-p2
Apache/2.2.22
MySQL 5.0.91-log
mysqlnd 5.0.8-dev
phpMyAdmin 3.5.2.1
using config authentication
I put the setup for my configuration database into a config block for a regular, non-configuration database in config.inc.php and it works fine using something like this:
$cfg['Servers'][$i]['verbose'] = 'pma';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'dbuser';
$cfg['Servers'][$i]['password'] = 'dbpass';
$cfg['Servers'][$i]['only_db'] = array('dbname');
$cfg['Servers'][$i]['host'] = 'dbserver.host.com';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';