mysql_connect错误500 [英] mysql_connect error 500

查看:445
本文介绍了mysql_connect错误500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将问题缩小为在PHP中正在执行的mysql_connect调用.
它产生一条错误消息.您会建议我如何解决此错误的问题:

I have narrowed down my problem to the mysql_connect call I am doing in PHP.
It produces an error message. What would you suggest I should do to fix the problem with this error:

错误摘要
HTTP错误500.0-内部服务器错误
由于发生内部服务器错误,因此无法显示该页面.

Error Summary
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.

详细的错误信息
模块IsapiModule
通知ExecuteRequestHandler
处理程序PHP
错误代码0x00000000
请求的URL http://localhost:80/getuser.php?q = 3& sid = 0.2953613724031635
物理路径C:\ inetpub \ wwwroot \ getuser.php
登录方法匿名
登录用户匿名

Detailed Error Information
Module IsapiModule
Notification ExecuteRequestHandler
Handler PHP
Error Code 0x00000000
Requested URL http://localhost:80/getuser.php?q=3&sid=0.2953613724031635
Physical Path C:\inetpub\wwwroot\getuser.php
Logon Method Anonymous
Logon User Anonymous

最可能的原因:

    IIS已收到请求;但是,在处理请求期间发生内部错误.此错误的根本原因取决于哪个模块处理请求以及此错误发生时工作进程中发生的事情.
  • IIS无法访问网站或应用程序的web.config文件.如果NTFS权限设置不正确,可能会发生这种情况.
  • IIS无法处理网站或应用程序的配置.
  • 经过身份验证的用户没有使用此DLL的权限.
  • 该请求已映射到托管处理程序,但未安装.NET扩展功能.
  • IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
  • IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
  • IIS was not able to process configuration for the Web site or application.
  • The authenticated user does not have permission to use this DLL.
  • The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

您可以尝试的事情:

  • 确保对web.config文件的NTFS权限正确,并允许访问Web服务器的计算机帐户.
  • 检查事件日志以查看是否记录了任何其他信息.
  • 验证DLL的权限.
  • 如果请求已映射到托管处理程序,则安装.NET可扩展性功能.
  • 创建跟踪规则以跟踪对此HTTP状态代码的失败请求.有关为失败的请求创建跟踪规则的更多信息,请单击此处.
  • Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
  • Check the event logs to see if any additional information was logged.
  • Verify the permissions for the DLL.
  • Install the .NET Extensibility feature if the request is mapped to a managed handler.
  • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

链接和更多信息此错误表示处理请求时出现问题.该请求已由Web服务器接收,但在处理过程中发生了致命错误,导致500错误.

Links and More InformationThis error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.

Microsoft知识库文章:

Microsoft Knowledge Base Articles:

  • 294807

推荐答案

检查phpinfo()是否存在MySQL函数.如果存在,请尝试连接到其他MySQL服务器.尝试通过更改变量来缩小问题范围,以解决代码,PHP库,SQL Server或Web服务器的问题.检查日志,我知道Apache有一个错误日志,其中包含详细的PHP错误信息-IIS可能有类似的东西.考虑重新编译并重新安装PHP.

Check phpinfo() for presence of MySQL functions. If those exist, try connecting to other MySQL servers. Try to narrow down if the problem is with your code, your PHP library, your SQL server or your web server by changing variables. CHeck for logs, I know Apache has an error log where detailed PHP error information goes -- IIS probably has something similar. Consider recompiling and reinstalling PHP.

这篇关于mysql_connect错误500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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