How to install php-mysqlnd in CentOS/RHEL 7 (x86_64)
A module for PHP applications that use MySQL databases
Install
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install php-mysqlnd
Description
The php-mysqlnd package contains a dynamic shared object that will add MySQL database support to PHP. MySQL is an object-relational database management system. PHP is an HTML-embeddable scripting language. If you need MySQL support for PHP applications, you will need to install this package and the php package. This package use the MySQL Native Driver
Compatibility
This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.
RPMs
| Package | Size | Built | Changes |
|---|---|---|---|
| php-mysqlnd-8.2.35-5.el7.x86_64 | 204 KiB | 2026-10-24 |
Danila Vershinin - add RuntimeDirectory=php-fpm to the base-shape unit (RHEL parity): · systemd recreates /run/php-fpm on every service start |
| php-mysqlnd-8.2.35-4.el7.x86_64 | 204 KiB | 2026-10-24 |
Danila Vershinin - ship tmpfiles.d/php-fpm.conf in the base shape: recreate /run/php-fpm at · boot, without it php-fpm fails to start after a reboot |
| php-mysqlnd-8.2.35-3.el7.x86_64 | 203 KiB | 2026-10-24 |
Danila Vershinin - add gps_license license-presence extension, statically compiled into every · SAPI (ADR-002): phpinfo attribution section, cron.daily verdict heartbeat, · dormant guarded HTML footer tier (hard clamps to footer, fail-open to soft) |
| php-mysqlnd-8.2.35-2.el7.x86_64 | 203 KiB | 2026-10-23 |
Danila Vershinin - Rebuild for EL7 from Remi's maintained 8.2.35-1 spec; Remi's EL7 · build stopped at 8.2.20-1, so this adds every upstream security · release 8.2.21-8.2.35 · - GetPageSpeed branding: Vendor and Packager tags, php -v prints · "Built by GetPageSpeed LLC", phpinfo Build Provider (upstream hook) · - php-common requires getpagespeed-extras-release · - Package every php.d extension ini as 0644; 0600 files silently drop · OPcache and other extensions for non-root CLI · - Build intl against libicu73 on EL7, as Remi's EL7 build does · - Build ext/openssl against EL7's OpenSSL 1.0.2: xp_ssl.c lacked the · ASN1_STRING_get0_data shim that openssl.c already carries · - enable the oci8 / pdo_oci build, linked against Oracle Instant Client · 21.13 exactly like Remi's EL7 build (soname libclntsh.so.21.1; the · client is fetched at build time only and never shipped) |