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!