title: Connect local phpMyAdmin with remote server - error #2002
body: <p>I have been searching for a right answer and no luck with solutions. I have WampServer and phpMyAdmin on my localhost. I have created a user in phpmyadmin on remote server with all privilages.</p>
  <ul>
  <li>in folder wamp/apps/phpmyadmin4.1.14/ I have found config.inc.php file</li>
  </ul>
  <p>And tried to connect it to the remote databases with the following code:</p>
  <pre><code>&lt;?php
  $i++;
  /* Authentication type */
  $cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
  //$cfg['Servers'][$i]['auth_type'] = 'cookie';
  $cfg['Servers'][$i]['auth_type'] = 'config';
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = '';
  /* Server parameters */
  $cfg['Servers'][$i]['host'] = '127.0.0.1';
  $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'] = true;
  
  $i++;
  /* Authentication type */
  //$cfg['Servers'][$i]['auth_type'] = 'cookie';
  $cfg['Servers'][$i]['auth_type'] = 'config';
  $cfg['Servers'][$i]['user'] = 'username';
  $cfg['Servers'][$i]['password'] = 'mypass';
  /* Server parameters */
  $cfg['Servers'][$i]['host'] = 'example.com';
  $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;
  ?&gt;
  </code></pre>
  <p>And, as a result, in phpMyAdmin now I have 2nd server, but when I choose it - an error pops-up. MySQL error #2002 that looks like this:</p>
  <h1>2002 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. The server is not responding (or the local server's socket is not correctly configured).</h1>
  <p>Please help what am I missing!</p>