相关疑难解决方法(0)

root密码更改后,PHPMyAdmin不会连接

我安装了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.
Run Code Online (Sandbox Code Playgroud)

然后我编辑了PHPMyAdmin的`config.inc.php'文件,其内容完全如下:

<?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']  = …
Run Code Online (Sandbox Code Playgroud)

mysql xampp configuration phpmyadmin change-password

6
推荐指数
1
解决办法
3万
查看次数