{"id":73915,"date":"2022-12-22T09:28:18","date_gmt":"2022-12-22T09:28:18","guid":{"rendered":"\/tutorials\/?p=73915"},"modified":"2026-03-10T10:11:33","modified_gmt":"2026-03-10T10:11:33","slug":"php-installation-missing-mysql-extension-wordpress","status":"publish","type":"post","link":"\/uk\/tutorials\/php-installation-missing-mysql-extension-wordpress","title":{"rendered":"4 ways to fix \u201cyour PHP installation appears to be missing the MySQL extension which is required by WordPress.\u201d"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Sometimes, when loading your WordPress website, the &ldquo;your PHP installation appears to be missing the MySQL extension which is required by WordPress&rdquo; error might pop up.<\/p><p>This error is typically caused by a nonexistent MySQL extension, outdated WordPress software, or an old PHP version.<\/p><p>Luckily, the missing MySQL extension error is easy to solve. In this article, we&rsquo;ll explore its causes and walk you through the four methods to fix the error.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all in one WordPress cheat sheet<\/a><\/p><figure tabindex=\"0\" class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Error code<\/strong><\/td><td>Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress<\/td><\/tr><tr><td><strong>Error type<\/strong><\/td><td>Server-side error<\/td><\/tr><tr><td><strong>Error causes<\/strong><\/td><td>Missing MySQL extension <br>Outdated WordPress version Using PHP 5.6 or lower<\/td><\/tr><\/tbody><\/table><\/figure><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-causes-the-your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress-error\">What Causes the &ldquo;Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress.&rdquo; Error<\/h2><p>This error occurs when your server&rsquo;s PHP can&rsquo;t connect your WordPress site to the MySQL database. As a result, you get an error message instead.<\/p><p>There are several possible causes of the said problem, namely:<\/p><h3 class=\"wp-block-heading\" id=\"h-missing-mysql-extension\">Missing MySQL Extension<\/h3><p>Not having the correct WordPress MySQL extension is one of the most common causes of this error.<\/p><p>The MySQL extension was deprecated from PHP 7.0 and above in favor of <strong>MySQLi extensions <\/strong>and <strong>PDO_MySQL<\/strong>. Therefore, if you&rsquo;re using a modern PHP version, you may have an outdated MySQL extension.<\/p><p>You can find out your PHP version in your control panel. For Hostinger users, open hPanel, and <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583467-how-to-check-the-php-configuration-info\" target=\"_blank\" rel=\"noopener\">check your PHP configuration information<\/a> there.<\/p><h3 class=\"wp-block-heading\" id=\"h-outdated-wordpress-version\">Outdated WordPress Version<\/h3><p>You may also face this error if you&rsquo;re using an outdated version of WordPress with PHP 7.0 and above. Since the modern PHP version deprecated the MySQL extension, WordPress will not find the extension it&rsquo;s looking for.<\/p><h3 class=\"wp-block-heading\" id=\"h-using-php-5-6-or-lower\">Using PHP 5.6 or Lower<\/h3><p>The 5.6 and lower PHP versions may not have deprecated the MySQL extension yet, but rather, your current PHP version may not be configured properly. As a result, WordPress is unable to connect to the necessary extension.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-fix-your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\">How to Fix &ldquo;Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress.&rdquo;<\/h2><p>After figuring out the cause of this issue, the next step is to fix it.<\/p><p>In this section, we&rsquo;ll explore the four ways to repair the problem.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-check-if-the-mysql-extension-is-enabled\">1. Check If the MySQL Extension Is Enabled<\/h3><p>If you&rsquo;re using PHP 5.6 or lower, you need to check whether the MySQL extension has been installed. Do this by uploading a <strong>phpinfo.php <\/strong>file into your browser.<\/p><p>To do so, follow the steps below:<\/p><ol class=\"wp-block-list\">\n<li>Sign in to your hosting account via File Transfer Protocol (FTP) like FileZilla or access Hostinger&rsquo;s File Manager from hPanel.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/File-Manager-menu-on-hPanel.png\"><img decoding=\"async\" width=\"1024\" height=\"382\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/File-Manager-menu-on-hPanel-1024x382.png\" alt=\"File Manager menu on hPanel\n\" class=\"wp-image-73918\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/File-Manager-menu-on-hPanel-1024x382.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/File-Manager-menu-on-hPanel-300x112.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/File-Manager-menu-on-hPanel-150x56.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/File-Manager-menu-on-hPanel-768x286.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/File-Manager-menu-on-hPanel.png 1328w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Open the <strong>public_html <\/strong>folder to access the root directory of your WordPress site.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager.png\"><img decoding=\"async\" width=\"1024\" height=\"323\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager-1024x323.png\" alt=\"The public_html folder on Hostinger File Manager\n\" class=\"wp-image-73919\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager-1024x323.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager-300x94.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager-150x47.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager-768x242.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-public_html-folder-on-Hostinger-File-Manager.png 1197w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Create a new file and name it <strong>phpinfo.php<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/New-file-button-on-Hostinger-File-Manager.png\"><img decoding=\"async\" width=\"1024\" height=\"373\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/New-file-button-on-Hostinger-File-Manager-1024x373.png\" alt=\"New file button on Hostinger File Manager\" class=\"wp-image-73920\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/New-file-button-on-Hostinger-File-Manager-1024x373.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/New-file-button-on-Hostinger-File-Manager-300x109.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/New-file-button-on-Hostinger-File-Manager-150x55.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/New-file-button-on-Hostinger-File-Manager-768x280.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/New-file-button-on-Hostinger-File-Manager.png 1492w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Edit the file by adding the following code snippet:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n\nphpinfo();\n\n?&gt;<\/pre><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Edit-the-file-and-input-the-code.png\"><img decoding=\"async\" width=\"1024\" height=\"627\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Edit-the-file-and-input-the-code-1024x627.png\" alt=\"Edit the file and input the code\" class=\"wp-image-73921\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Edit-the-file-and-input-the-code-1024x627.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Edit-the-file-and-input-the-code-300x184.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Edit-the-file-and-input-the-code-150x92.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Edit-the-file-and-input-the-code-768x470.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Edit-the-file-and-input-the-code.png 1119w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>To load this file into a browser, add <strong>\/phpinfo.php<\/strong> after your website&rsquo;s URL. For instance, <strong>example.com\/phpinfo.php<\/strong>. Once it loads, the page will show you a list of your website&rsquo;s PHP settings.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer.png\"><img decoding=\"async\" width=\"1024\" height=\"634\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer-1024x634.png\" alt=\"The phpinfo.php page when displayed on a broswer\" class=\"wp-image-73922\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer-1024x634.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer-300x186.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer-150x93.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer-768x475.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/The-phpinfo.php-page-when-displayed-on-a-broswer.png 1475w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>For this issue, look for the row named the <strong>Client API version<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie.png\"><img decoding=\"async\" width=\"1024\" height=\"96\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie-1024x96.png\" alt=\"Client API version information on the phpinfo.php fie\" class=\"wp-image-73923\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie-1024x96.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie-300x28.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie-150x14.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie-768x72.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Client-API-version-information-on-the-phpinfo.php-fie.png 1142w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>If you can&rsquo;t find it, that means the extension is not installed.<\/p><p>To fix that, contact your hosting provider and ask them to install the extension for you. Hostinger users can easily <a href=\"https:\/\/support.hostinger.com\/en\/articles\/4667515-how-to-manage-php-extensions-and-options-on-hpanel\" target=\"_blank\" rel=\"noopener\">manage their PHP extensions<\/a> via hPanel.<\/p><p>Alternatively, update your PHP version so that the extension is unnecessary.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-make-sure-the-php-extension-is-properly-configured\">2. Make Sure the PHP Extension Is Properly Configured<\/h3><p>Once you&rsquo;re sure that the PHP extension is installed, the next step is to check whether it&rsquo;s properly configured.<\/p><p>One of the main causes of PHP configuration problems is that you&rsquo;re uploading the wrong <strong>php.ini <\/strong>file or it has an incorrect file path. This can happen when you&rsquo;re uploading a file that&rsquo;s intended for Windows when you&rsquo;re using a Linux server or vice versa.<\/p><p>You can find this information in the <strong>Loaded Configuration File <\/strong>row in the <strong>phpinfo.php <\/strong>file you have uploaded before.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file..png\"><img decoding=\"async\" width=\"1024\" height=\"127\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file.-1024x127.png\" alt=\"Loaded Configuration File row in the phpinfo.php file.\n\" class=\"wp-image-73924\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file.-1024x127.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file.-300x37.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file.-150x19.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file.-768x95.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Loaded-Configuration-File-row-in-the-phpinfo.php-file..png 1284w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>First, don&rsquo;t forget to create a backup of this file by downloading it to your computer. After, delete the <strong>php.ini <\/strong>file and check whether this fixes the problem.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-check-the-php-version-you-re-using\">3. Check the PHP Version You&rsquo;re Using<\/h3><p>To <a href=\"\/uk\/tutorials\/how-to-change-your-php-version\">change your PHP version<\/a>, go to the <strong>Tools &rarr; Site Health <\/strong>menu on your WordPress dashboard.<\/p><p>Choose the <strong>Info <\/strong>tab. Scroll down and expand the <strong>Server <\/strong>option. You can see the PHP version you&rsquo;re currently using under this section.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Server-Info-on-WordPress-dashboard.png\"><img decoding=\"async\" width=\"1024\" height=\"586\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Server-Info-on-WordPress-dashboard-1024x586.png\" alt=\"Server information section on WordPress dashboard\n\" class=\"wp-image-73925\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Server-Info-on-WordPress-dashboard-1024x586.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Server-Info-on-WordPress-dashboard-300x172.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Server-Info-on-WordPress-dashboard-150x86.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Server-Info-on-WordPress-dashboard-768x439.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Server-Info-on-WordPress-dashboard.png 1521w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Another option is to use the <strong>phpinfo.php <\/strong>file you uploaded earlier. Scroll to the <strong>Core <\/strong>section and look for the <strong>PHP Version <\/strong>row.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file.png\"><img decoding=\"async\" width=\"1024\" height=\"144\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file-1024x144.png\" alt=\"PHP Version information on the phpinfo.php file\n\" class=\"wp-image-73926\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file-1024x144.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file-300x42.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file-150x21.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file-768x108.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/PHP-Version-information-on-the-phpinfo.php-file.png 1149w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>If your PHP version starts with the number 7, you might need to update the WordPress software. However, if the version starts with 5, you may be missing the MySQL extension instead.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-update-the-wordpress-core-software\">4. Update the WordPress Core Software<\/h3><p>If your current version of PHP is already above 7, this problem might be caused by an outdated WordPress installation instead. Version 3.9 or lower can prompt this error.<\/p><p>We recommend <a href=\"\/uk\/tutorials\/how-to-update-wordpress\">updating the WordPress<\/a> software to the most recent version. Aside from fixing this problem, doing so also comes with other benefits for your WordPress sites, such as security and performance improvements.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> Make sure to back up your website before proceeding with the WordPress software update.<\/p><\/div>\n\n\n\n<\/p><p>To update the core software manually, go to <a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress.org<\/a> and download the latest WordPress installation version.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_.png\"><img decoding=\"async\" width=\"1024\" height=\"479\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_-1024x479.png\" alt=\"Download the latest version of WordPress from WordPress.org\n\" class=\"wp-image-73927\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_-1536x719.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_-300x140.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_-150x70.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_-768x359.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/Download-the-latest-version-of-WordPress-from-WordPress.org_.png 1900w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>Then, extract the zip file into your computer. Open the folder that contains all the WordPress files and delete the following ones:<\/p><ul class=\"wp-block-list\">\n<li><strong>wp-config-sample.php<\/strong> file<\/li>\n\n\n\n<li><strong>wp-content <\/strong>folder<\/li>\n\n\n\n<li><strong>wp-config.php <\/strong>file<\/li>\n<\/ul><p>If you can&rsquo;t find some of these among your existing files, proceed to delete the ones you see in the installation folder.<\/p><p>After that, upload the rest of the files and folders to your server via FTP. In case you see an error message about duplicate files, choose the <strong>Overwrite <\/strong>option.<\/p><p>Once everything is uploaded, your WordPress website should work properly.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/uk\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>In this article, we have figured out the causes for the &ldquo;your PHP installation appears to be missing the MySQL extension which is required by WordPress&rdquo; error, which are a missing MySQL extension, an outdated WordPress version, or an older version of PHP.<\/p><p>We&rsquo;ve also covered the four ways you can fix this issue, namely:<\/p><ul class=\"wp-block-list\">\n<li>Checking if the MySQL extension is enabled<\/li>\n\n\n\n<li>Making sure that the PHP extension is properly configured<\/li>\n\n\n\n<li>Checking the current version of PHP you&rsquo;re using<\/li>\n\n\n\n<li>Updating the WordPress core software<\/li>\n<\/ul><p>If you still have any questions about the PHP or MySQL extension error, feel free to drop them in the comments section. Don&rsquo;t forget to check out our other <a href=\"\/uk\/tutorials\/\">tutorials<\/a> to improve your WordPress site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, when loading your WordPress website, the &ldquo;your PHP installation appears to be missing the MySQL extension which is required by WordPress&rdquo; error might pop up. This error is typically caused by a nonexistent MySQL extension, outdated WordPress software, or an old PHP version. Luckily, the missing MySQL extension error is easy to solve. In [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/uk\/tutorials\/php-installation-missing-mysql-extension-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":372,"featured_media":129038,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Fix Missing MySQL Extension Error in WordPress","rank_math_description":"Check out this article to learn 4 ways to solve \"your PHP installation appears to be missing the MySQL extension which is required by WordPress.\"","rank_math_focus_keyword":"your php installation appears to be missing the mysql extension which is required by wordpress","footnotes":""},"categories":[22633],"tags":[],"class_list":["post-73915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/sua-instalacao-do-php-parece-estar-faltando-a-extensao-mysql-requerida-pelo-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/extension-mysql-manquante-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/sua-instalacao-do-php-parece-estar-faltando-a-extensao-mysql-requerida-pelo-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/php-installation-missing-mysql-extension-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/73915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/users\/372"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/comments?post=73915"}],"version-history":[{"count":12,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/73915\/revisions"}],"predecessor-version":[{"id":129037,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/73915\/revisions\/129037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media\/129038"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media?parent=73915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/categories?post=73915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/tags?post=73915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}