PHPMyAdmin не подключается после смены пароля root

Я установил Xampp (для Windows). Я счастливо использовал его со всеми его функциями.

Тогда я хотел изменить пароль MySql. Я установил случайно сгенерированный пароль (rCZ4Xnz78zbLY2Vh). Затем PHPMyAdmin прекратил вход в систему. Он начал выдавать следующее сообщение об ошибке, и с тех пор оно остается прежним:

Error

MySQL said:
Cannot connect: invalid settings.

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection.
You should check the host, username and password in your configuration and make sure that
they correspond to the information given by the administrator of the MySQL server.

Затем я отредактировал файл `config.inc.php" в PHPMyAdmin и сделал его содержимое точно таким, как показано ниже:

<?php

/* Servers configuration */
$i = 1;
$cfg['Servers'][$i]['host']         = '127.0.0.1';
$cfg['Servers'][$i]['port']         = '3306';
$cfg['Servers'][$i]['ssl']          = FALSE;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension']    = 'mysql';
$cfg['Servers'][$i]['compress']     = FALSE;
$cfg['Servers'][$i]['controluser']  = 'root';   
$cfg['Servers'][$i]['controlpass']  = 'rCZ4Xnz78zbLY2Vh';
$cfg['Servers'][$i]['auth_type']    = 'config';
$cfg['Servers'][$i]['user']         = 'root';
$cfg['Servers'][$i]['password']     = 'rCZ4Xnz78zbLY2Vh';
$cfg['Servers'][$i]['nopassword']   = TRUE;

/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold']     = 50;
$cfg['Servers'][$i]['bs_repository_threshold']  = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout']     = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold']    = '32M';

/* Other settings */
$cfg['blowfish_secret'] = '';
$cfg['DefaultCharset']  = 'utf-8';
$cfg['UploadDir']       = '';
$cfg['SaveDir']         = '';

?>

Но я смог подключиться к серверу MySql через командную строку по тому же паролю.

C:\Users\hkBattousai>mysql.exe --user=root --password=rCZ4Xnz78zbLY2Vh
mysql.exe: Unknown OS character set 'cp857'.
mysql.exe: Switching to the default character set 'latin1'.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 5.5.27 MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

Затем я удалил пароль через интерфейс командной строки:

Я также удалил пароль изconfig.inc.php файл. Соответствующие строки в этом файле теперь:

$cfg['Servers'][$i]['controluser']  = 'root';
$cfg['Servers'][$i]['controlpass']  = '';
$cfg['Servers'][$i]['user']         = 'root';
$cfg['Servers'][$i]['password']     = '';

В настоящее время это странно, но я могу соединиться с удаленным паролем, но не могу соединиться с пустым паролем:

C:\Users\hkBattousai>mysql.exe --user=root --password=rCZ4Xnz78zbLY2Vh  // Connects
C:\Users\hkBattousai>mysql.exe --user=root --password=                  // Error given

Я хочу назначить этому пользователю другой случайный пароль, и я хочу получить доступ к своей базе данных через PHPMyAdmin, как я делал это в предыдущей установке Xampp. Что я должен делать? Я очень запутался и мне нужна твоя помощь.

Это какconfig.inc.php содержимое файла игнорируется. Я скопировал его из файла шаблонаconfig.sample.inc.php и изменил его содержание. Сейчас он находится в каталоге\Xampp\phpmyadmin\.

Версии:

Xampp   : 3.1.0
MySQL   : 5.5.27
PHP     : 5.4.7
Apache  : 2.4
Windows : 7 Ultimate x64 SP1

Ответы на вопрос(3)

Ваш ответ на вопрос