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.
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
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!