title: Error # 1045 - Cannot Log in to MySQL server -> phpmyadmin
body: <p>We have installed PHPMyAdmin on a windows machine running IIS 7.0.<br>
  We are able to connect to MySQL using command-line, But we are not able to connect using PHPMyAdmin.<br>
  The error displayed is: <code>Error #1045 Cannot log in to the MySQL server.</code><br>
  Can somebody please help? </p>
  
  <p><code>PHP Version 5.4.0</code><br>
  <code>mysqlnd 5.0.10 - 20111026 - $Revision: 323634 $</code><br>
  <code>phpMyAdmin-3.5.4-rc1-all-languages.7z</code>  </p>
  
  <p><strong>EDIT :</strong><br>
  I followed the link below with no success, mean i changed that password but phpmyadmin still has that error...<br>
  <a href="http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html" rel="noreferrer">C.5.4.1.1. Resetting the Root Password: Windows Systems</a>  </p>
  
  <p>Also there is thread like below in stack with no help :<br>
  <a href="https://stackoverflow.com/questions/11370667/random-error-1045-cannot-log-in-to-the-mysql-server">Random error: #1045 Cannot log in to the MySQL server</a><br>
  but that error is not random -> i always have that error...  </p>
  
  <p>And this is config.inc.php file in phpmyadmin folder:   </p>
  
  <pre><code>&lt;?php
  /* vim: set expandtab sw=4 ts=4 sts=4: */
  /**
   * Config file view and save screen
   *
   * @package PhpMyAdmin-setup
   */
  
  if (!defined('PHPMYADMIN')) {
      exit;
  }
  
  /**
   * Core libraries.
   */
  require_once './libraries/config/FormDisplay.class.php';
  require_once './setup/lib/index.lib.php';
  require_once './setup/lib/ConfigGenerator.class.php';
  
  $config_readable = false;
  $config_writable = false;
  $config_exists = false;
  check_config_rw($config_readable, $config_writable, $config_exists);
  ?&gt;
  &lt;h2&gt;&lt;?php echo __('Configuration file') ?&gt;&lt;/h2&gt;
  &lt;?php display_form_top('config.php'); ?&gt;
  &lt;input type="hidden" name="eol" value="&lt;?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?&gt;" /&gt;
  &lt;?php display_fieldset_top('', '', null, array('class' =&gt; 'simple')); ?&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;textarea cols="50" rows="20" name="textconfig" id="textconfig" spellcheck="false"&gt;&lt;?php
              echo htmlspecialchars(ConfigGenerator::getConfigFile())
          ?&gt;&lt;/textarea&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class="lastrow" style="text-align: left"&gt;
          &lt;input type="submit" name="submit_download" value="&lt;?php echo __('Download') ?&gt;" class="green" /&gt;
          &lt;input type="submit" name="submit_save" value="&lt;?php echo __('Save') ?&gt;"&lt;?php if (!$config_writable) echo ' disabled="disabled"' ?&gt; /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  display_fieldset_bottom_simple();
  display_form_bottom();
  ?&gt;
  </code></pre>
  
  <p>where part of these codes should i change?  </p>
  
  <p>Thanks.</p>