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
Release: 2024-11-13 02:52:02
Original
745 people have browsed it

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
Copy after login

Once php-mysql is removed, you can proceed to install php-mysqlnd:

yum install php-mysqlnd
Copy after login

After installation, verify the success of the process by checking for the presence of mysqlnd:

php -m | grep mysqlnd
Copy after login

or

php -i | grep mysqlnd
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template