Php 致命错误:调用未定义的函数mysql_connect(),缺少mysqli扩展
我的php.ini文件中有以下两个Php 致命错误:调用未定义的函数mysql_connect(),缺少mysqli扩展,php,mysql,iis,mysqli,Php,Mysql,Iis,Mysqli,我的php.ini文件中有以下两个 extension=php_mysql.dll extension=php_mysqli.dll 从php.info()中,可以看到以下内容是正确的 Loaded Configuration File C:\Program Files (x86)\PHP\v5.3\php.ini 我只安装了一个php版本 我还应该尝试什么 奇怪的是,如果我加载我的应用程序,错误是 The mysqli extension is missing. Please ch
extension=php_mysql.dll
extension=php_mysqli.dll
Loaded Configuration File C:\Program Files (x86)\PHP\v5.3\php.ini
The mysqli extension is missing. Please check your PHP configuration.
<a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>
致命错误:调用未定义的函数mysql_connect()
但是如果我加载phpMyAdmin,在登录之后,错误是
The mysqli extension is missing. Please check your PHP configuration.
<a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>
缺少mysqli扩展。请检查您的PHP配置。
确保php.ini的路径已设置且在中可见
在加载的配置文件中
如果您正在使用windows。。确保使用/和\
在apachehttpd.conf中
应该是
PHPIniDir“C:/php/5.5/”使用xampp或EasyHP或类似软件可以帮助您更改任何
.ini
/系统文件,然后您需要重新启动包括Apache在内的所有服务。还添加了错误报告。如果可能的话,请尝试重新安装,并确保您的文件是.php
。我注意到那里有一个.html
链接。当你看到,phpinfo是正确的,你是说,你看到其中的两个扩展了吗?别忘了,在windows下,这些dll有依赖项,有时这会导致错误:libmysql.dll
和libmysqli.dll
嗨,我在使用IIS。iisreset,mysql重启了吗。问题不是从这里出现的。您应该在phpinfo显示中看到信息。如果没有,则需要重新启动服务器。