Home > Backend Development > PHP Tutorial > How to Install MySQLi on Mac for PHP 5 Without php-mysql?

How to Install MySQLi on Mac for PHP 5 Without php-mysql?

Susan Sarandon
Release: 2024-11-28 11:22:10
Original
339 people have browsed it

How to Install MySQLi on Mac for PHP 5 Without php-mysql?

Installing MySQLi on Mac for PHP 5

A user recently encountered difficulties installing MySQLi on a Mac while running PHP 5. Despite MySQL being up-to-date, the user could not locate installation instructions for MySQLi.

Solution:

The solution lies in using php-mysqlnd as an alternative to php-mysql. For Linux users, installing php-mysqlnd via apt-get involves the following command:

apt-get install php-mysqlnd
Copy after login

By adopting this approach, the user can successfully install MySQLi on their Mac and resolve the installation dilemma.

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