localhost / phpmyadmin /打开为https而不是http

时间:2013-08-17 09:59:56

标签: php mysql phpmyadmin xampp localhost

我正在尝试在xampp中打开phpmyadmin页面但是我被困在一个地方..当我试图打开页面时

http://localhost/phpmyadmin/ 

它给了我以下错误:

enter image description here

但是当我打开

https://localhost/phpmyadmin/ 

它成功打开..我检查了它的设置后的config.inc.php文件..

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type']            = 'config';
$cfg['Servers'][$i]['user']                 = 'root';
$cfg['Servers'][$i]['password']             = '';
$cfg['Servers'][$i]['AllowNoPassword']      = true;

有谁知道可能是什么问题..我已经尝试了几乎所有事情并继续做..已经两天了..

提前感谢..

3 个答案:

答案 0 :(得分:0)

您可以查看下面的2个文档链接来解决您的问题

只需抛出此链接就可以解决您的问题

http://www.michaelbarton.name/2009/12/13/forcing-ssl-with-phpmyadmin/

// place this at the bottom somewhere
$cfg['ForceSSL'] = false;

另请查看以下

http://docs.phpmyadmin.net/en/latest/config.html

答案 1 :(得分:0)

检查您的config.inc.php文件

默认情况下应该包含这样的内容:

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

答案 2 :(得分:0)

https使它比http更安全,所以你最好只使用它,因为它正在工作