PHP在本地主机上出错 [英] Error in PHP on local host

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

问题描述

Hello Guys正在开发localhost上的php项目,但是当我打开localhost:80 /脚本时出现此错误

Hello Guys am working on php project on localhost but when i open localhost:80/script so am getting this error

Your PHP installation appears to be missing the "MySQL" extension which is required by Sngine.

Back to your server admin or hosting provider to enable it for you



i我很困惑如何解决这个错误我使用的是7.0 php版本伙计们请帮帮我

怎么解决呢



我尝试过的事情:




i am confused how can i solve this error i am using 7.0 php version guys please help me
how can i solve it

What I have tried:

Your PHP installation appears to be missing the "MySQL" extension which is required by Sngine.

Back to your server admin or hosting provider to enable it for you

推荐答案

错误消息是相当的clear:你必须安装MySQL扩展。



参见 PHP:安装 - 手册 [ ^ ]。



但请注意该页面顶部的评论,即不推荐使用MySQL扩展。如果可能的话,你应该使用一个新的扩展。



如果安装了MySQL并且你仍然遇到错误,请检查 extension_dir 设置 php.ini 文件。应该注释(使用默认目录)或包含PHP扩展的有效路径(取决于服务器的操作系统)。
The error message is quite clear: You have to install the MySQL extension.

See PHP: Installation - Manual[^].

But note the comment on top of that page that the MySQL extension is deprecated. If possible you should use one of the new extensions.

If MySQL is installed and you still got the error, check the extension_dir setting your php.ini file. That should be commented (use default directory) or contain a valid path to your PHP extensions (depends on the operating system of your server).


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

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