[英]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.