The message Your PHP installation appears to be missing the MySQL extension which is required by WordPress means the PHP process serving your site cannot load the database connector WordPress expects. In current PHP releases, that connector is normally mysqli (often backed by mysqlnd), not the obsolete mysql extension. Confirm the web server’s PHP modules, enable mysqli and mysqlnd in your hosting panel or install the matching package on your VPS, then restart PHP-FPM or the web server. The steps below separate each hosting environment and show how to verify that you changed the PHP instance WordPress actually uses.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
What the error actually means
WordPress stores posts, settings, users and plugin data in MySQL or MariaDB. PHP needs a database extension to open that connection. The official WordPress requirements list mysqli as the required PHP extension. Many builds also include mysqlnd, the native driver used underneath several MySQL clients, but mysqlnd by itself is not a replacement for mysqli.
As an Amazon Associate I earn from qualifying purchases.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsThe wording is historical. PHP removed the old, procedural mysql extension in PHP 7.0. If an old configuration or guide says to install “mysql,” it is referring to a component that modern PHP cannot load. Installing a current mysqli package is the appropriate fix; downgrading PHP solely to restore the removed extension creates a security and compatibility problem.
Sometimes the extension is installed but not loaded by the PHP SAPI used for web requests. A command-line check can show one PHP build while Apache or PHP-FPM runs another. For that reason, diagnose both the command line and the web configuration before changing files.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Prepare before changing PHP
- Record the PHP version selected for the affected domain and whether the site uses Apache, Nginx with PHP-FPM, or a hosting control panel.
- Take a current database and file backup before changing PHP packages or switching versions.
- Note whether the error began after a PHP-version change, migration, server rebuild or control-panel update. Those events commonly leave the new PHP build without the modules enabled in the old build.
- Keep an administrator login or hosting support contact available. Shared and managed plans may not permit editing
php.inior installing packages.
Confirm which PHP instance is missing the connector
Using SSH
Log in to the server that actually serves the WordPress site and run:
php -m | grep -i mysql
A working installation normally returns mysqli and often mysqlnd and/or pdo_mysql. The exact combination depends on the distribution, but the absence of mysqli is the important finding. If the command returns nothing, the command-line PHP build has no MySQL-related module loaded.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Check the version and configuration file used by that command as well:
php -v
php --ini
These commands identify the CLI binary and its loaded configuration. They do not prove that the web server uses the same binary, version or php.ini.
Using a temporary phpinfo page
When shell access is unavailable, create a file such as phpinfo-check.php in the site’s document root containing:
<?php phpinfo(); ?>
Open that file over HTTPS and look for a mysqli section, the Loaded Configuration File value and extension_dir. This view reflects the web SAPI that WordPress uses, so it is the authoritative check for a browser error. Delete the file immediately after checking it; a public phpinfo page exposes server paths, enabled modules and other configuration details that should not remain accessible.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Fix the error on common hosting setups
cPanel
- Sign in to cPanel and open Software → Select PHP Version. Some accounts expose the same controls through MultiPHP Manager; use the screen that controls the affected domain.
- Verify the PHP version assigned to the domain. If you change versions, choose a version supported by your WordPress release and plugins rather than selecting an arbitrary latest option.
- In the extensions list, enable
mysqliandmysqlnd. Ifpdo_mysqlis available, enabling it is harmless for applications that use PDO, but it does not replace the documented WordPress requirement formysqli. - Save or apply the selection, wait for the panel to reload the PHP configuration, and reload the site in a private browser window.
- Use a fresh phpinfo check or the hosting panel’s module display to confirm that the web SAPI now reports
mysqli. Remove any temporary diagnostic file.
On hosts that separate PHP versions per domain, enabling an extension for one version does not enable it for another. Recheck the domain mapping in MultiPHP Manager if the module appears enabled but the error persists.
Plesk
- Open Tools & Settings → PHP Settings and select the PHP version assigned to the subscription or domain.
- Enable
mysqliandmysqlndin the available extensions or additional directives. - Apply the change, then reload WordPress and verify the web-facing PHP configuration with phpinfo.
Plesk can expose several handlers for the same version. Make sure the handler assigned to the domain is the one you edited; changing an unused handler will not affect requests reaching WordPress.
Managed WordPress hosting
Managed plans commonly hide package installation and extension switches. Open a support ticket and state the domain, the PHP version shown in the control panel, and the exact error. Ask the host to confirm that mysqli is loaded for the web SAPI and that the corresponding mysqlnd driver is present. Ask them to restart the relevant PHP service after enabling it and to tell you which PHP configuration file they changed.
Do not upload a custom shared object or copy an extension from another server. The module must be compiled for the exact PHP version, operating system and architecture used by the host; support staff can install the compatible package safely.
Debian or Ubuntu VPS
Install the package matching the PHP version used by PHP-FPM or Apache. For PHP 8.3, the commonly used package name is:
sudo apt update
sudo apt install php8.3-mysql
The package supplies the MySQL-related PHP modules, including mysqli on standard builds. Substitute the actual version if the server runs another supported PHP release; installing php8.3-mysql while the site runs PHP 8.2 will not change the 8.2 SAPI.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
After installation, restart the PHP service or web server that handles requests. A PHP-FPM setup typically uses:
sudo systemctl restart php8.3-fpm
If Apache loads PHP directly, restart Apache instead:
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →sudo systemctl restart apache2
Run php -m | grep -i mysql again, then verify the browser-facing SAPI with phpinfo. Package managers may leave an older FPM pool running if multiple versions are installed, so check the pool and virtual-host configuration when the CLI and web results disagree.
RHEL-family VPS
On distributions derived from Red Hat Enterprise Linux, the package is generally named php-mysqlnd. Install it through the distribution’s enabled repositories, then restart the PHP-FPM service or Apache service assigned to the site. Confirm the module with both the CLI command and a temporary phpinfo page. Exact package streams vary by distribution and enabled module repository, so use the package name associated with the PHP stream you selected rather than mixing streams.
Make sure the edited configuration is the one WordPress loads
PHP can read different configuration files for CLI, Apache and PHP-FPM. In phpinfo, compare Loaded Configuration File and extension_dir with the files and directories you edited. If they point somewhere else, your change was applied to an inactive configuration.
After every package or configuration change, restart the relevant PHP-FPM pool or web server. PHP-FPM workers retain the old module list until they are restarted. A browser refresh alone cannot load an extension into already-running workers.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
When more than one PHP version is installed, check all three mappings: the domain’s selected version in the hosting panel, the PHP-FPM pool or Apache handler for that domain, and the version returned by the CLI. Aligning those mappings prevents a successful CLI test from masking a failing web configuration.
Verify the repair without exposing credentials
- Run
php -m | grep -i mysqlon the server and confirm thatmysqliappears. - Use the temporary phpinfo page to confirm
mysqliunder the web SAPI, then delete the page. - Load
/wp-admin/and a normal front-end page. Confirm that pages can read existing content and that a harmless setting change saves successfully. - Check the PHP error log and web-server log for the original missing-extension message. Remove or rotate diagnostic files after testing.
If WordPress still reports the same message after both checks show mysqli, the request may be reaching a different server, container or PHP pool than the one you changed. Verify DNS, load-balancer targets and the virtual host before making further package changes.
Troubleshoot the common failure branches
The CLI shows mysqli, but the website does not
This is the classic SAPI mismatch. The shell’s php binary may be newer than the PHP-FPM pool, or Apache may load a separate module. Use phpinfo from the affected domain to identify the web version and configuration file, then install or enable the connector for that exact version and restart its service.
The panel checkbox is selected, but the error remains
Confirm that the checkbox belongs to the domain’s active PHP version, not a dormant version. Clear PHP-FPM workers by restarting the service if the host permits it, and test again with phpinfo. If the host controls restarts, ask support to verify the module in the web SAPI rather than relying on the panel state.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallmysqli appears, but WordPress cannot connect
A loaded extension proves only that PHP can speak the MySQL protocol; it does not validate database credentials or reachability. Check the database host, name, username and password in wp-config.php, then inspect firewall and database-server logs. Do not replace a connection-authentication error with extension changes.
Only a plugin or custom script fails
Some older code calls the removed mysql_* functions directly. That code is incompatible with PHP 7.0 and later even when WordPress core works with mysqli. Update the plugin or application to a maintained release, or have its developer replace the obsolete API. Installing a legacy PHP version to keep abandoned code running leaves the entire site exposed to known vulnerabilities.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
pdo_mysql is present but mysqli is absent
Several guides describe pdo_mysql as sufficient, while the official WordPress requirements specifically name mysqli. Enable mysqli and, where offered, mysqlnd. Treat pdo_mysql as an additional driver for software that uses PDO, not as the documented substitute for WordPress core.
The extension fails to load after a server upgrade
Reinstall the package for the new PHP version and inspect the package manager’s post-install messages. A PHP upgrade can change the module directory, configuration filename or FPM service name. Compare phpinfo’s extension_dir and Loaded Configuration File with the new installation, then restart the new service rather than the old one.
WordPress and database version requirements
Extension repair should not be separated from version planning. The following figures are the WordPress Hosting Team’s stated requirements and recommendations for WordPress 7.1 as surfaced on 14 October 2026. Verify the current requirements before a production upgrade because support windows change.
| Category | PHP | MySQL | MariaDB |
|---|---|---|---|
| Absolute minimum for WordPress 7.1 | 7.4 or newer | 5.5.5 or newer | 5.5.5 or newer |
| Recommended for new WordPress 7.1 installs | 8.4.x or 8.5.x | 8.4.x | 10.11.x, 11.4.x or 11.8.x |
| Official requirements-page baseline | 8.3 or newer | 8.0 or newer | 10.11 or newer |
The minimum row is a compatibility floor, not a security recommendation. The official requirements page notes that PHP 7.4 and MySQL 5.5.5 can still work but are end-of-life and insecure. WordPress 7.0 already used the same PHP 7.4 floor; the change from the earlier PHP minimum of 7.2.24 occurred when that requirement was raised.
WordPress core also raised its MySQL minimum in version 6.5, in a core-team announcement dated 8 December 2023. A site that was upgraded across that boundary may expose an outdated database server even after PHP extensions are corrected.
Plan around database end-of-life dates
Database support dates are time-sensitive. The WordPress Hosting Team’s table lists MySQL 8.0 LTS reaching end of life in April 2026 and MariaDB 10.6 LTS in July 2026. The same table lists later supported dates for MySQL 8.4 LTS and MariaDB 11.8 LTS. Because vendors can revise lifecycle schedules, check the current table before scheduling an upgrade.
When moving databases, test a full backup restore, character set and collation behavior, scheduled jobs and plugin queries in a staging environment. Upgrade PHP and the database as coordinated changes only when your host documents the supported combination; otherwise isolate the extension fix first so a failed database migration does not obscure the original problem.
Prevent the error from returning
- Keep a written map of each domain’s PHP version, PHP-FPM pool and configuration path.
- After every PHP switch, run both the CLI module check and a web-SAPI phpinfo check, then remove the diagnostic file.
- Before enabling automatic PHP upgrades, confirm that the hosting image includes
mysqliand that your plugins support the target PHP release. - Monitor PHP and database lifecycle notices; do not wait for an end-of-life upgrade to force an emergency configuration change.
- Keep WordPress core, plugins and themes updated so obsolete
mysql_*calls are replaced before a PHP upgrade removes compatibility. - Document the restart command or support-ticket procedure for the PHP-FPM pool serving each production site.
The durable fix is therefore specific: identify the PHP SAPI serving the request, load mysqli for that exact version, restart the process that caches the module list, and verify the result through the browser-facing configuration. Version upgrades and database lifecycle work should follow only after that connector path is confirmed.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




