2017-04-10 119 views
0

我在我的电脑上安装了wamp服务器。我已经使用用户:'root'和空白密码,直到昨天。但今天突然发现我无法登录到我的phpmyadmin。我在C:\wamp64\apps\phpmyadmin4.5.2目录下检查了我的config.inc.php。我已经添加下面的代码:本地主机上无法登录到我的phpmyadmin

/* Servers configuration */ 
$i = 0; 

$cfg['blowfish_secret'] = 'a8b7c6d'; //What you want 

/* Server: localhost [1] */ 
$i++; 
$cfg['Servers'][$i]['verbose'] = 'Local Databases'; 
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
$cfg['Servers'][$i]['user'] = ''; 
$cfg['Servers'][$i]['password'] = ''; 

// Hidden databases in PhpMyAdmin left panel 
// $cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|sys)'; 

// Allow connection without password 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

// Suppress Warning about pmadb tables 
$cfg['PmaNoRelation_DisableWarning'] = true; 

// To have PRIMARY & INDEX in table structure export 
$cfg['Export']['sql_drop_table'] = true; 
$cfg['Export']['sql_if_not_exists'] = true; 

$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman/5.7/en/'; 
/* End of servers configuration */ 

我编辑的文件与['user'] ='root'['password']=''但没有运气。可以请任何人帮助我吗?我不知道有什么问题。我有很多文件托管在我的本地主机。这将是一个很大的帮助。提前

+0

首先你需要检查当前使用'phpinfo()'运行的php版本,然后检查那里的配置文件路径。更改文件,然后保存,然后重新启动服务器(您正在使用的xampp/wamp/lamp/mamp whatevrer)。重新启动很重要 –

+0

我检查过了。我正在使用PHP版本7和php.ini的配置路径是C:\ Windows ..现在我该怎么办? – Gamer

+0

改变任何你想改变和保存,然后重新启动你的服务器 –

回答

0

感谢也许这是因为你走的

$cfg['Servers'][$i]['user'] = ''; 

空?或者它是一个等同的根?

+0

我不知道。我编辑并用根替换它,但没有运气:( – Gamer