Home >Backend Development >PHP Tutorial >How to fix the missing MySQLi extension in PHP 7?

How to fix the missing MySQLi extension in PHP 7?

DDD
DDDOriginal
2024-11-16 12:35:03610browse

How to fix the missing MySQLi extension in PHP 7?

Resolving MySQLi Extension Absence in PHP 7

Despite having installed PHP 7 and MySQL, your system lacks the MySQLi extension necessary for PHP database connectivity. To rectify this, follow these steps:

The previously used php5-mysql package is obsolete. Instead, install the updated package:

sudo apt-get install php-mysql

This command will automatically update both Apache and PHP 7, resolving the MySQLi extension issue.

The above is the detailed content of How to fix the missing MySQLi extension in PHP 7?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn