Solved

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

Posted on 2004-09-08
6
80,515 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
6 Comments
 
LVL 2

Accepted Solution

by:
montasirma earned 500 total points
Comment Utility
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
Comment Utility
Thanks montasirma ..thats awsome..thanks appreciate your help
0
 

Expert Comment

by:secondironman29
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:williambericson
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now