简体   繁体   English

获取错误致命错误:调用未定义函数mysqli_connect()

[英]Getting an error Fatal error: Call to undefined function mysqli_connect()

First off I would like to mention that I have used the search option and looked at multiple different posts as to why I have this problem yet it is still occurring. 首先,我想提一提,我使用了搜索选项,并查看了多个不同的帖子,以了解为什么我仍然遇到这个问题,但仍在发生。

In my PHPInfo() I have mySQL installed. 在我的PHPInfo()中,我安装了mySQL。 In my PHP.ini I have it in the correct directory as per my PHPInfo and I also removed the semicolon in front of extension=php_mysql.so. 在我的PHP.ini中,根据我的PHPInfo,它位于正确的目录中,并且我还删除了extension = php_mysql.so前面的分号。

I also have the extensions pointing to my extension folder with all the various modules. 我也有指向所有各种模块的扩展文件夹的扩展。 After all this I still have this error. 毕竟,我仍然有此错误。

Are there any other ways I can go about attempting to fix this issue? 我还有其他方法可以尝试解决此问题吗?

I think you have missing the mysqli extension. 我认为您缺少mysqli扩展名。 You need to installed first sqli extension than you can use its functions.. 您需要先安装sqli扩展,然后才能使用其功能。

Please have a look on the link to configured of all version of mysqli. 请查看所有版本的mysqli的配置链接。 http://php.net/manual/en/mysqli.installation.php http://php.net/manual/en/mysqli.installation.php

Contact to your server administrator or do: 与您的服务器管理员联系,或执行以下操作:

sudo apt-get install php5-mysql

Will install package containing mysqli and mysql, so afterwards all you need to do is restart apache and it should work. 将安装包含mysqli和mysql的软件包,因此之后您所要做的就是重启apache,它应该可以工作。

sudo service apache2 restart

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 致命错误:未捕获错误:调用未定义函数mysqli_connect() - Fatal error: Uncaught Error: Call to undefined function mysqli_connect() Linux PHP致命错误:调用未定义的函数mysqli_connect() - Linux PHP Fatal error: Call to undefined function mysqli_connect() 致命错误:调用未定义的函数 mysqli_connect - Fatal error: Call to undefined function mysqli_connect Eclipse:“ PHP致命错误:调用未定义函数mysqli_connect()” - Eclipse: “PHP Fatal error: Call to undefined function mysqli_connect()” 致命错误:调用未定义的函数 mysqli_connect() - Fatal error: Call to undefined function mysqli_connect() 致命错误:调用未定义的 function mysqli_connect() - Fatal error: Call to undefined function mysqli_connect() 移动服务器,现在出现致命错误:调用未定义函数mysqli_connect() - Moved servers, and now getting a Fatal error: Call to undefined function mysqli_connect() 如何解决“致命错误:调用未定义函数mysqli_connect()”的错误? - How do I fix the “Fatal error: Call to undefined function mysqli_connect()” error? 致命错误:未捕获的错误:调用 php7 的 windows 中未定义的 function mysqli_connect() - Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in windows for php7 Ubuntu PHP致命错误:调用PHP脚本时,调用in ..中未定义的函数mysqli_connect() - Ubuntu PHP Fatal error: Call to undefined function mysqli_connect() in.. when calling PHP script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM