Home  >  Article  >  Backend Development  >  How to Install MySQLi on a Mac with PHP 5?

How to Install MySQLi on a Mac with PHP 5?

Susan Sarandon
Susan SarandonOriginal
2024-11-16 11:13:03938browse

How to Install MySQLi on a Mac with PHP 5?

Installing MySQLi on Mac

Question:

Many users find themselves struggling to install MySQLi on a Mac. Despite having a functional installation of MySQL, they are unsure of how to obtain and install MySQLi for PHP 5.

Answer:

To install MySQLi on a Mac running PHP 5, you should utilize php-mysqlnd instead of php-mysql. For Linux-based systems, the following command will install php-mysqlnd using apt-get:

apt-get install php-mysqlnd

Once the installation is complete, you will have MySQLi available for use in your PHP applications.

The above is the detailed content of How to Install MySQLi on a Mac with PHP 5?. 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