Home > Database > Mysql Tutorial > body text

How to Resolve Conflicts and Install MySQLnd in PHP?

DDD
Release: 2024-11-14 15:43:02
Original
956 people have browsed it

How to Resolve Conflicts and Install MySQLnd in PHP?

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

  • Uninstall the existing MySQL extension:
yum remove php-mysql
Copy after login
  • Install the MySQLnd extension:
yum install php-mysqlnd
Copy after login

Verification

To confirm successful installation, run the following commands:

php -m | grep mysqlnd
Copy after login

or

php -i | grep mysqlnd
Copy after login

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!

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