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
How do I access phpMyAdmin?
提问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/
出现此屏幕:
How do I make it so that this login screen appears instead:
我如何做到这一点,而不是出现此登录屏幕:
回答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 中存储网页
Then, just going to the address localhost
will 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.conf
or httpd.conf
or whatever is).
到/etc/phpmyadmin/apache.conf
(或任何你apache.conf
或httpd.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 DirectoryIndex
param.
检查您的主机配置,检查DirectoryIndex
参数。