I've got two servers: Web and MySQL, both on Ubuntu 12.04 x64
On Web is setup a phpmyadmin installation and nginx etc. On MySQL is setup a mysqsl installation
When I run mysql --user=user --host=MySQL.hostname --password, from Web, I can connect just fine to the MySQL server
But when I try to connect via phpmyadmin, it does not work. why?
User is not root
In the /usr/share/phpmyadmin/config.inc.php file (which I copied from the sample), I have this:
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'MySQL.hostname';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
On the MySQL server, I have it setup to bind to 0.0.0.0 and I have user permissions for this user on 'localhost' and '%' (remember- I do connect just fine via mysql client)
(note: MySQL.hostname is actually a resolvable hostname, just using this here for example)