Mysql 无法在运行XAMPP的本地主机上访问phpMyAdmin

Mysql 无法在运行XAMPP的本地主机上访问phpMyAdmin,mysql,wordpress,phpmyadmin,xampp,Mysql,Wordpress,Phpmyadmin,Xampp,我已经在我的Windows计算机上安装了XAMPP,并试图在本地运行WordPress。我在连接wp数据库时遇到一些问题,现在根本无法访问phpMyAdmin。有没有办法修复重新安装XAMPP的这一缺陷 我尝试在XAMPP的passwords.txt、wordpress wp-config.php、php config.inc.php文件中设置用户名/密码。我在php.config.inc.php文件中取消注释并设置密码: 当我尝试转到本地主机上的phpmyadmin时,会收到错误消息: 无法连

我已经在我的Windows计算机上安装了XAMPP,并试图在本地运行WordPress。我在连接wp数据库时遇到一些问题,现在根本无法访问phpMyAdmin。有没有办法修复重新安装XAMPP的这一缺陷

我尝试在XAMPP的passwords.txt、wordpress wp-config.php、php config.inc.php文件中设置用户名/密码。我在php.config.inc.php文件中取消注释并设置密码:

当我尝试转到本地主机上的phpmyadmin时,会收到错误消息:

无法连接:设置无效。 mysqli_real_connect:HY000/1045:使用密码拒绝用户“root”@“localhost”的访问:是 phpMyAdmin试图连接到MySQL服务器,但服务器拒绝了连接。您应该检查配置中的主机、用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应。

试试这个

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'ENTER_YOUR_USER_NAME_HERE';
$cfg['Servers'][$i]['password'] = 'ENTER_YOUR_PASS_HERE';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
我希望是类似的。第三个答案

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'ENTER_YOUR_USER_NAME_HERE';
$cfg['Servers'][$i]['password'] = 'ENTER_YOUR_PASS_HERE';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';