How to fix the missing MySQLi extension in PHP 7?

DDD
Release: 2024-11-16 12:35:03
Original
547 people have browsed it

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
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template