php 如何访问 phpMyAdmin?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18988977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 18:37:39  来源:igfitidea点击:

How do I access phpMyAdmin?

phpapachehttpphpmyadmin

提问by Nico Encarnacion

I installed phpMyAdmin on my computer. I used Apache as my http server. However, every time I go to http://localhost/phpMyAdmin/, this screen appears:

我在我的电脑上安装了 phpMyAdmin。我使用 Apache 作为我的 http 服务器。但是,每次我去 时,都会http://localhost/phpMyAdmin/出现此屏幕:

enter image description here

在此处输入图片说明

How do I make it so that this login screen appears instead:

我如何做到这一点,而不是出现此登录屏幕:

enter image description here

在此处输入图片说明

回答by cssyphus

You may be better off to install an integrated suite, such as:

您最好安装一个集成套件,例如:

XAMPP - Linux/Windows/Apple* store web pages in htdocs

XAMPP - Linux/Windows/Apple* 在 htdocs 中存储网页

WAMP - Windows

WAMP - 视窗

MAMP - Apple

MAMP - 苹果

Then, just going to the address localhostwill give you a menu, with all components (apache, phpmyadmin, tomcat, etc etc)

然后,只要去地址localhost会给你一个菜单,包含所有组件(apache、phpmyadmin、tomcat等)

They are all free, so why not?

它们都是免费的,为什么不呢?

回答by Frambot

Add this

添加这个

DirectoryIndex index.php

to /etc/phpmyadmin/apache.conf(or wherever your apache.confor httpd.confor whatever is).

/etc/phpmyadmin/apache.conf(或任何你apache.confhttpd.conf或一切)。

If you happen to be running on Windows, look for the Apache webserver directory.

如果您碰巧在 Windows 上运行,请查找 Apache webserver 目录。

XAMPP Users: If you have installed it as a service, changes to configuration files seem to take effect only when you restart the service through the Services paneland not via the XAMPP control panel.

XAMPP 用户:如果您已将其安装为服务,则对配置文件的更改似乎只有在您通过“服务”面板而不是通过 XAMPP 控制面板重新启动服务时才会生效

回答by Lorca

I found that when I entered root in the username and left the password blank I got in

我发现当我在用户名中输入 root 并将密码留空时,我进入了

回答by Diogo Baracho

Use http://localhost/phpMyAdmin/index.php

http://localhost/phpMyAdmin/index.php

or

或者

Check your host config, check the DirectoryIndexparam.

检查您的主机配置,检查DirectoryIndex参数。