PhpMyAdmin在本地主机上不起作用 [英] PhpMyAdmin not working on localhost

查看:134
本文介绍了PhpMyAdmin在本地主机上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xampp版本:1.7.7(已安装在外部硬盘驱动器上),操作系统:Windows 8, 安装了phpMyAdmin的4.1.7版本,并将config.inc.php从我的旧版本phpmyadmin复制到了新的phpmyadmin版本(4.1.7)

Xampp version:1.7.7 (installed it on external hard drive), operating system: Windows 8, installed version 4.1.7 of phpMyAdmin and copied config.inc.php from my old version of phpmyadmin to the new phpmyadmin version (4.1.7)

当我键入localhost/phpMyAdmin时,我收到错误消息:

When I type localhost/phpMyAdmin I get the error message:

找不到对象!

Object not found!

在此服务器上找不到请求的URL.如果输入URL 手动,请检查您的拼写,然后重试.

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

如果您认为这是服务器错误,请与网站管理员联系. 错误404本地主机02/13/14 17:16:55 Apache/2.2.21(Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8

If you think this is a server error, please contact the webmaster. Error 404 localhost 02/13/14 17:16:55 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8

因此,我在xampp本地主机欢迎页面中进行了查看 http://pngwebdesign.co.uk /forum/localhost.jpg 并在安全链接 PhpMyAdmin 中:找不到'config.inc.php',如何解决

So I had a look in the xampp localhost welcome page http://pngwebdesign.co.uk/forum/localhost.jpg and in the security link PhpMyAdmin: Could not find the 'config.inc.php' comes up, how can this be recified

在我的本地phpmyadmin文件夹中查找了config.inc.php文件,因此我真的不明白为什么我无法登录localhost/phpMyAdmin

Looked in my local phpmyadmin folder and the config.inc.php file is there so I really don't understand why I can't log into localhost/phpMyAdmin

任何帮助表示赞赏

推荐答案

您尝试使用"localhost/phpmyadmin"吗? (注意小写)

did you try 'localhost/phpmyadmin' ? (notice the lowercase)

PHPMyAdmin的版本/发行版中的目录名称往往不一致.

PHPMyAdmin tends to have inconsistent directory names across its versions/distributions.

编辑:通过检查根文件夹的名称来确认URL!

Confirm the URL by checking the name of the root folder!

如果配置是主要问题(并且可能仍然是nthary),则会出现php错误,而不是http找不到对象"错误,

If the config was the primary issue (and it may still be nthary) you would get a php error, not a http "Object not found" error,

关于配置错误,请按以下步骤纠正它:

As for the config error, here are some steps to correct it:

  1. 一旦确认PHPMyAdmin处于哪种情况,请确认config.inc.php位于其根目录中.

  1. Once you have confirmed which case your PHPMyAdmin is in, confirm that your config.inc.php is located in its root directory.

如果是,请将其重命名为其他名称作为备份.然后复制config.sample.inc.php(在同一目录中)并将其重命名为config.inc.php

If it is, rename it to something else as a backup. Then copy the config.sample.inc.php (in the same directory) and rename it to config.inc.php

检查是否有效.

如果可以,请同时打开新的config.inc.php(可以正常工作)和您之前使用的备份.比较它们并复制/替换要保留的重要部分,文件(处于默认状态)并不长,并且这样做相对容易.

If its does, then open up both the new config.inc.php (that works) and the backup you took earlier of your old one. Compare them and copy/replace the important parts that you want to carry over, the file (in its default state) isn't that long and it should be relatively easy to do so.

如果您希望使用旧配置的原因是因为曾经使用过安全性设置,那么我绝对建议您仍然使用XAMPP内置的安全向导,这样可以确保您具有正确版本的正确配置.不能保证不同的XAMPP/PHPMyAdmin版本以相同的方式实现安全性/任何功能.

N.B. If the reason that you want your old config is because of security setup that you once had, I would definitely suggest still using the security wizard built into XAMPP so that you can be assured that you have the right configuration for the right version. There is no guarantee that different XAMPP/PHPMyAdmin versions implement security/anything in the same way.

XAMPP安全向导

http://localhost/security/xamppsecurity.php

这篇关于PhpMyAdmin在本地主机上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆