How to Enable MySQLnd Extension in PHP
To enable the MySQL Native Driver (MySQLnd) extension in PHP, you need to install it. However, when trying to install using yum, you may encounter a conflict error between MySQL and MySQLnd. To resolve this issue, follow these steps:
Compilation from Source Code
The ./configure command is used during compilation from source code. However, you wish to install via a package manager for convenience.
Installation via Package Manager
yum remove php-mysql
yum install php-mysqlnd
Verification
To confirm successful installation, run the following commands:
php -m | grep mysqlnd
or
php -i | grep mysqlnd
The output should display information about the installed MySQLnd extension.
The above is the detailed content of How to Resolve Conflicts and Install MySQLnd in PHP?. For more information, please follow other related articles on the PHP Chinese website!