0
每當我關機後啓動我的筆記本電腦,我需要重新安裝XAMPP來解決「拒絕訪問」與其他幾個錯誤(顯示在上傳的照片中)的問題。從XAMPP重新啓動服務器不會改變任何事情。它背後的真正原因是什麼以及如何解決它?如何解決phpmyadmin的「拒絕訪問」消息?
每當我關機後啓動我的筆記本電腦,我需要重新安裝XAMPP來解決「拒絕訪問」與其他幾個錯誤(顯示在上傳的照片中)的問題。從XAMPP重新啓動服務器不會改變任何事情。它背後的真正原因是什麼以及如何解決它?如何解決phpmyadmin的「拒絕訪問」消息?
前往文件夾C:\ XAMPP的\ phpMyAdmin的,詮釋這個文件夾中有一個文件 「config.inc.php中」。在Notepad ++或Sublime Text或任何文本編輯器中打開此文件。
添加下面這段代碼這兩個代碼:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
添加下面的代碼:
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
重新啓動XAMPP,也將努力
礦XAMPP配置代碼如下:
<?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]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
$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 */
?>
Poss可重複的[phpMyAdmin訪問被拒絕](http://stackoverflow.com/questions/5483518/phpmyadmin-access-denied) – PacMan