MySQL localhost/phpmyadmin 给出页面未找到错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17772413/
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
localhost/phpmyadmin giving page not found error
提问by user961627
I'm running wampserver.
我正在运行 wampserver。
I had a mysql server crash, and the wampmysqld service would not start up. Also, localhost/phpmyadmin
did not show phpmyadmin but gave me a 403 error. I installed the mysql-addon for another mysql version. Then I went to the wampserver icon and did Mysql > Version > and selected the add-on version I'd just downloaded.
我的 mysql 服务器崩溃了,wampmysqld 服务无法启动。另外,localhost/phpmyadmin
没有显示 phpmyadmin 但给了我一个 403 错误。我为另一个 mysql 版本安装了 mysql-addon。然后我转到 wampserver 图标并执行 Mysql > Version > 并选择我刚刚下载的附加版本。
This helped, wampmysqld was able to start up, the wampserver icon was able to go green all the way, and my application is working. However, phpmyadmin is giving a 404 error. How do I fix this?
这有帮助,wampmysqld 能够启动,wampserver 图标能够一直变绿,我的应用程序正在运行。但是,phpmyadmin 给出了 404 错误。我该如何解决?
phpmyadmin.conf
is:
phpmyadmin.conf
是:
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.3.9/"
# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
#
<Directory "c:/wamp/apps/phpmyadmin3.3.9/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
I changed c:/
to d:/
as per the location of phpmyadmin on my machine and restarted all services. But I'm still getting the same error.
我换c:/
到d:/
按我的机器上的phpmyadmin的位置,并重新启动所有服务。但我仍然遇到同样的错误。
回答by Chirag goyal
You need to configure your apache2.conf to make phpMyAdmin works.
您需要配置 apache2.conf 才能使 phpMyAdmin 工作。
sudo nano /etc/apache2/apache2.conf
Then add the following line to the end of the file.
然后将以下行添加到文件末尾。
Include /etc/phpmyadmin/apache.conf
Then restart apache
然后重启apache
/etc/init.d/apache2 restart
回答by user961627
Solved as per the steps on this page:
按照本页的步骤解决:
http://www.sitepoint.com/forums/showthread.php?618686-Virtual-hosts-and-phpmyadmin
http://www.sitepoint.com/forums/showthread.php?618686-Virtual-hosts-and-phpmyadmin
回答by Ernest M Gary
Start wamp or xamp make sure the icon color change to green for wamp. This time open it in another browsers not Internet explorer . it should work
启动 wamp 或 xamp,确保 wamp 的图标颜色变为绿色。这次在其他浏览器中打开它而不是 Internet Explorer。它应该工作