How to Install MySQLi on a Mac with PHP 5?

Susan Sarandon
Release: 2024-11-16 11:13:03
Original
944 people have browsed it

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

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!

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template