Scenario: You have PHP 5.3.17 installed and desire to switch to the MySQLnd extension.
Solution: There are two methods to install MySQLnd:
For yum-based systems:
For apt-based systems:
Edit the configure script:
./configure --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd
Run any of the following commands to verify the installation:
If the output includes mysqlnd, the extension has been successfully enabled.
The above is the detailed content of How to Enable MySQLnd Extension in PHP?. For more information, please follow other related articles on the PHP Chinese website!