我在更改权限后似乎无法返回phpMyAdmin,我不断收到以下错误:
错误1405
MySQL说:文档
1045 - 拒绝访问用户'''''''localhost'(使用密码:是)
我在mac上使用XAMPP。不确定如何修复这个,任何想法?
答案 0 :(得分:1)
您必须转到C:\xampp\phpMyAdmin\config.inc.php
并编辑该文件。默认文件(未设置任何密码)如下所示。
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
sc delete mysql
。这将删除您在mysql中执行的先前设置。