Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot Load Mysql extension please check PHP configuration" --- phpMysqladmin   ---cannot load mysql.so

Posted on 2004-09-08
6
Medium Priority
?
80,535 Views
Last Modified: 2011-08-18
I am trying to install phpMyadmin ..for using it as a client for my mysql database .I am doing this on Red hat Linux ,and PHP 4 and Mysql .

I am getting the following error
" Cannot Load Mysql extension please check PHP configuration"

When I see the documentation I see the below documentation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"To connect to a MYSQL server PHP needs a set of Mysql fucntions called the "Mysql extension".This extension may be a part of the PHP distribution otherwise it needs to be laoded dynamically .Its name is probably mysql.so or php_mysql.dll .PhpMyadmin tried to load the extension but failed.

Usually the problem is solved by installing a sofware package called "PHP-MYSQL'" or something sililar
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks for your time
0
Comment
Question by:micro_learner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Accepted Solution

by:
montasirma earned 2000 total points
ID: 12013035
After installing PHP on Redhat, add the package it is asking for (PHP-MySQL), then edit the php.ini file (you will find it in /etc/php.ini). Scroll down to the "Dynamic Extensions" section and remove the semicolon beside the line: extension=mysql.so

After that restart the httpd service (service httpd restart) then try to install PHPMyAdmin again. This should make the installation complete without problems.
0
 

Author Comment

by:micro_learner
ID: 12016271
Thanks montasirma ..thats awsome..thanks appreciate your help
0
 

Expert Comment

by:secondironman29
ID: 12735942
am trying to install phpMyadmin ..for using it as a client for my mysql database .I am doing this on win 2000 prof  ,and PHP 4 and Mysql .

I am getting the following error
" Cannot Load Mysql extension please check PHP configuration"

When I see the documentation I see the below documentation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"To connect to a MYSQL server PHP needs a set of Mysql fucntions called the "Mysql extension".This extension may be a part of the PHP distribution otherwise it needs to be laoded dynamically .Its name is probably mysql.so or php_mysql.dll .PhpMyadmin tried to load the extension but failed.

Usually the problem is solved by installing a sofware package called "PHP-MYSQL'" or something sililar
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks for your time
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

Expert Comment

by:williambericson
ID: 13184914
If you are having this problem in windows (unable to load Mysql extension) - do not forget that
the apache httpd.conf file has a variable for where php.ini is and for PHP5 is seems to default to
c:\PHP

If your php.ini file is in c:\winnt  then edit the C:\Program Files\Apache Group\Apache2\conf\httpd.conf   file

# configure the path to php.ini
PHPIniDir "C:/WINNT"


This solved that problem for me after I had done all the things most notes say to do ...
(like uncomment      
extension=php_mysql.dll    in  c:\winnt\php.ini
and set
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\ext"                 in  c:\winnt\php.ini
0
 

Expert Comment

by:ashokrathod78
ID: 14491716
Hello,

Please i have same problem but how to install PHP-MYSQL package?
I have installed PHP5 and mySQL5 still i can not open that phpMyAdmin.

I am using XP OS
0
 

Expert Comment

by:dstonek
ID: 15129546
Fedora3
I am having the same problem "Cannot Load Mysql extension please check PHP configuration" --- phpMysqladmin
I know almost anything about servers.  I have a site of phtotography I had to move from a shared server to a dedicated one.  It is supposed there is installed Apache PHP-MySQL.
My php.ini has a section [MySQL] where |extension=mysql.so| is enabled
I've |service httpd restart| and |service mysql restart|
Please help
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question