我无法登录phpmyadmin(XAMPP) 我的配置文件:
<?php
declare(strict_types=1);
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/**
* Servers configuration
*/
$i = 0;
/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
$cfg['Servers'][$i]['password']='mypass';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
当我输入登录根目录和密码mypass时,发生错误:
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)
请问有人可以帮我吗?