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.0.30-26.el7.x86_64 | 264 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.0.30-25.el7.x86_64 | 264 KiB | 2026-10-23 |
Danila Vershinin - enable the oci8 / pdo_oci build (new oci8 subpackage), 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). Unblocks the Remi to GetPageSpeed upgrade on hosts that have · Remi's oci8 package installed (its exact-NVR pdo dependency). |
| php-mysqlnd-8.0.30-24.el7.x86_64 | 264 KiB | 2026-10-22 |
Danila Vershinin - GetPageSpeed branding: Vendor and Packager tags, php -v prints · "Built by GetPageSpeed LLC" (phpinfo Build Provider already set) · - php-common requires getpagespeed-extras-release · - No upstream change: Remi has no fixes newer than the patch set already · carried |
| php-mysqlnd-8.0.30-23.el7.x86_64 | 263 KiB | 2026-10-22 |
Danila Vershinin - Package every php.d extension ini as 0644, as Remi does; 0600 files · silently dropped OPcache and other extensions for non-root CLI |
| php-mysqlnd-8.0.30-22.el7.x86_64 | 263 KiB | 2026-10-22 |
Danila Vershinin - Rebuild Remi's maintained 8.0.30-21 (EL8+ only) for EL7; carries · CVE-2026-109618, CVE-2026-109619 and the 2024-2026 fixes since 8.0.30-3 |