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

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

问题描述

Xampp 版本:1.7.7(安装在外置硬盘上),操作系统:Windows 8,安装了 4.1.7 版的 phpMyAdmin 并将 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:

找不到对象!

在此服务器上找不到请求的 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 localhost 欢迎页面 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天全站免登陆