Home >Database >Mysql Tutorial >How to Enable MySQLnd for PHP: A Guide to Package Manager Installation

How to Enable MySQLnd for PHP: A Guide to Package Manager Installation

DDD
DDDOriginal
2024-11-13 02:52:02718browse

How to Enable MySQLnd for PHP: A Guide to Package Manager Installation

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn