Bobcares

PHPMyAdmin error cannot load mysql extension – How we figured it out

by | Oct 30, 2019

phpMyAdmin – Error

Error: “Cannot load mysql extension. Please check your PHP configuration

While loading phpMyAdmin on a new server, many customers are having trouble with the above error both in Linux and Windows servers.

One of the main reasons for this error is missing MySQL extension on the server.

At Bobcares, we often get requests to fix PHPMyAdmin error cannot load mysql extension as part of our Server Management Services.

Today, let’s get into the details and see how our Support Engineers fix this PHPMyAdmin error.

How we fixed phpMyAdmin error cannot load MySQL extension

At Bobcares, we have more than a decade of expertise in managing servers, we see many customers face problems while managing phpMyAdmin.

Now, let’s see the major reasons for this phpMyAdmin errors and how our Support Engineers fix the top errors.

Usually, when a user trying to access phpMyAdmin, the following message will appear on the interface.

Here, let’s see how our Support Engineers fixed this error in both Linux and Windows servers.

 

Fix for phpMyAdmin error cannot load MySQL extension – Windows

Recently, one of our customers ran into the following error when trying to launch phpMyAdmin from the WAMP icon tray menu.

phpMyAdmin – Error
Cannot load mysql extension. Please check your PHP configuration.

On checking, our Support Engineers found that PHP cannot find the library, mysql.dll. In Windows, it is required to connect to MySQL.

So, we enabled the MySQL extension that loads the mysql.dll library. Also, we set the Windows ‘Path’ to point to the directory where the mysql.dll is sitting.

Finally, we restarted the Windows server.

This is how we fixed the error.

 

Lacking php-mysql module – Linux

Also, php-mysql is a PHP application module and this module uses MySQL databases. In Linux servers,  in the absence of php-mysql module, customers may get the following error while access PhpMyAdmin.

Error: “Cannot load mysql extension. Please check your PHP configuration”.

So, we installed php-mysql on the server. For that, we took the following steps to solve the error.

yum -y install php-mysql

Finally, we restart the Http service.

service httpd restart

 

That’s fixed the error.

 

[Need assistance to fix PHPMyAdmin error cannot load mysql extension? We’ll help you.]

 

Conclusion

In short, PHPMyAdmin error cannot load mysql extension message can occur both in Linux as well as in windows. Often, this error message happens when the absence of the MySQL extension on the server. Today, we saw how our Support Engineers installed MySQL extension and fix related errors.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF