Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-09-08
6
Medium Priority
?
80,541 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 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
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 Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

877 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