title: wamp mysql cannot connect to localhost
body: <p>hello
  i tried to follow an online tut for setting password in mysql and this has now led to errors that i cannot recover from.</p>
  
  <p>1) phpMyAdmin-2.11.10
     this gives login box with message underneath: cannot load mcrypt. i have enabled in wamp and also put libmcrypt.dll in windows and windows\system32 folders. but still get message.if i put root in login box with no pass, this leads to second error.</p>
  
  <p>2) mysql error</p>
  
  <h1>1130 - Host 'localhost' is not allowed to connect to this MySQL server</h1>
  
  <p>i have tried various fixes but nothing seems to work. i would be grateful for any help. thanks</p>
  
  <p>phpMyAdmin-2.11.10
  mysql4.1.22
  php4.4.7</p>
  
  <p>phpmyadmin config.inc.php</p>
  
  <pre><code>&lt;?php
  /* vim: set expandtab sw=4 ts=4 sts=4: */
  /**
   * phpMyAdmin sample configuration, you can use it as base for
   * manual configuration. For easier setup you can use scripts/setup.php
   *
   * All directives are explained in Documentation.html and on phpMyAdmin
   * wiki &lt;http://wiki.phpmyadmin.net&gt;.
   *
   * @version $Id: config.sample.inc.php 12304 2009-03-24 12:56:58Z nijel $
   */
  
  /*
   * This is needed for cookie based authentication to encrypt password in
   * cookie
   */
  $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  
  /*
   * Servers configuration
   */
  $i = 0;
  
  /*
   * First server
   */
  $i++;
  /* Authentication type */
  $cfg['Servers'][$i]['auth_type'] = 'config';
  /* Server parameters */
  $cfg['Servers'][$i]['host'] = 'localhost';
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = '';
  $cfg['Servers'][$i]['connect_type'] = 'tcp';
  $cfg['Servers'][$i]['compress'] = false;
  /* Select mysqli if your server has it */
  $cfg['Servers'][$i]['extension'] = 'mysql';
  /* User for advanced features */
  // $cfg['Servers'][$i]['controluser'] = 'pma';
  // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  /* Advanced phpMyAdmin features */
  // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  // $cfg['Servers'][$i]['relation'] = 'pma_relation';
  // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  // $cfg['Servers'][$i]['history'] = 'pma_history';
  // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  
  /*
   * End of servers configuration
   */
  
  /*
   * Directories for saving/loading files from server
   */
  $cfg['UploadDir'] = '';
  $cfg['SaveDir'] = '';
  
  ?&gt;
  </code></pre>