오류 # 1045 - MySQL 서버에 로그인할 수 없음 -> phpmyadmin

IIS 7.0을 실행하는 윈도우즈 시스템에 PHPyAdmin을 설치했습니다.
명령줄로 MySQL에 연결할 수 있지만 PHPyAdmin으로는 연결할 수 없습니다.
표시되는 오류는 '오류 #1045 MySQL 서버에 로그인할 수 없습니다.`
누가 좀 도와주시겠어요?

PHP 버전 5.4.0
'mysqlnd 5.0.10 - 20111026 - $Revision: 323634 $'
'phpMyAdmin-3.5.4-rc1-모든 언어.7z'

편집:
나는 아래 링크를 팔로우했지만 성공하지 못했다. 즉, 나는 그 비밀번호를 바꿨지만 phpmyadmin은 여전히 그 오류를 가지고 있다...
[C.5.4.1.1]. 루트 암호 재설정: Windows 시스템즈]1

또한 도움 없이 스택에 다음과 같은 스레드가 있습니다.
랜덤 오류: #1045 MySQL 서버에 로그인할 수 없음
하지만 그 오류는 무작위가 아닙니다 -> 난 항상 그런 오류를 가지고 있습니다...

다음은 phpmyadmin 폴더에 있는 config.inc.php 파일입니다.

<?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);
?>
<h2><?php echo __('Configuration file') ?></h2>
<?php display_form_top('config.php'); ?>
<input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
<?php display_fieldset_top('', '', null, array('class' => 'simple')); ?>
<tr>
    <td>
        <textarea cols="50" rows="20" name="textconfig" id="textconfig" spellcheck="false"><?php
            echo htmlspecialchars(ConfigGenerator::getConfigFile())
        ?></textarea>
    </td>
</tr>
<tr>
    <td class="lastrow" style="text-align: left">
        <input type="submit" name="submit_download" value="<?php echo __('Download') ?>" class="green" />
        <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
    </td>
</tr>
<?php
display_fieldset_bottom_simple();
display_form_bottom();
?>

이 코드의 어느 부분을 변경해야 합니까?

고마워요.

Linux에서 루트 명령 프롬프트로 이동하여 이 문제를 해결합니다.

# mysqladmin -u root password 'Secret Phrase Here'

그런 다음 돌아가서 로그인하십시오. 항상 작동됩니다!

해설 (1)
해결책

게시물에서 언급한 링크를 따라 두 가지 추가 작업을 수행해야 합니다.

phpmyadmin's config.inc.php에서 변경된 로그인 자격 증명을 매핑해야 합니다.

둘째, 웹과 mysql 서버를 다시 시작해야 합니다.

여기서 php버전은 문제가 되지 않습니다.mysqlmyadmin 설치 디렉토리로 이동하여 'config.inc.mysql' 파일을 찾고 해당 파일에 현재 mysql 암호를 줄에 넣어야 합니다.

$cfg['Servers'][$i]['user'] = 'root'; //mysql username here
$cfg['Servers'][$i]['password'] = 'password'; //mysql password here
해설 (9)

처음 설치하는 경우 사용자 이름과 암호를 루트로 사용하여 로그인하십시오.

해설 (0)