Enabling MySQLnd for PHP
To enable MySQLnd for PHP, there are two main approaches: compilation from source code or installation via package manager.
Using the ./configure command is associated with source code compilation, which is not necessary in your case. Instead, let's focus on the package manager approach.
You have encountered an error message indicating a conflict between php-mysql and php-mysqlnd. To resolve this, you can first remove php-mysql using the following command:
yum remove php-mysql
Once php-mysql is removed, you can proceed to install php-mysqlnd:
yum install php-mysqlnd
After installation, verify the success of the process by checking for the presence of mysqlnd:
php -m | grep mysqlnd
or
php -i | grep mysqlnd
If the command returns information about mysqlnd, it means that it has been successfully enabled for PHP.
The above is the detailed content of How to Enable MySQLnd for PHP: A Guide to Package Manager Installation. For more information, please follow other related articles on the PHP Chinese website!