簡體   English   中英

無法登錄到本地主機上的phpmyadmin

[英]Can't login to my phpmyadmin on localhost

我的PC上安裝了Wamp服務器。 直到昨天,我一直使用用戶:' root '和空白密碼。 但是今天突然我發現我無法登錄到phpmyadmin。 我已經在C:\\wamp64\\apps\\phpmyadmin4.5.2目錄下檢查了config.inc.php。 我添加了以下代碼:

    /* 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']=''編輯了文件,但是沒有運氣。 可以請任何人幫我嗎? 我不知道出什么問題了。 我的本地主機下托管了許多文件。 這將是一個很大的幫助。 提前致謝

可能是因為您離開了

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

空? 還是等同於root?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM