phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration

Mobile
feeds
Welcome Login | Register


phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration
phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration This page contains information about phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration Here you can also give your thought about the subject of phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration


Main List


phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration

By: PHP Admin

The other day I was trying to install myphpadmin for a customer. I did a fresh install on a linux box. I upload phpmyadmin when I tried to pull it up with my browser, i got this error:

 

phpMyAdmin New Install Error:

 

phpMyAdmin New Install Error: Cannot Load mysql extension. Please check your PHP Configuration

 

This is how you troubleshoot and fix this error problem:

STEP1. UPLOAD PHPINFO.PHP FILE - Uploaded a phpinfo.php file to your site. This will help you determine if you have the mysql extension installed in your server. If you dont know what a phpinfo.php file is, click here to learn about it.

STEP2. VIEW PHPINFO.PHP FILE - Once you have uploaded your phpinfo.php file to your site, pull it up with your browser. Look for the MYSQL section at the bottom of the page, It should look something like the image below. If you dont see it, continue with the next step. If case you DO. then the problem is something else that I dont know how to advise you how to fix. But if you DONT, then continue with step 3.

mysql phpinfo

 

STEP3: STOP YOUR MYSQL SERVER- Stop your mysql server with the following command:

/etc/init.d/mysqld stop

STEP4. HOW TO INSTALL THE MYSQL EXTENSION: To install it, I will be using yum to fetch the necessary files. If have your domain name hosted by a shared web hosting company, then you most likely dont have your own server. If you have your own server, login to your ssh connection or open your shell and execute the following comamnd

yum install mysql mysql-devel mysql-server

NOTE: you will need to have internet access on your server to be able to access the mirror site. Also, I executed this command on a Redhat/Fedora Linux Server. Not sure if it will also work for other distributions such as SUSE, Mandrake, Debian, Centos, etc..

STEP4 HOW TO UPDATE MY PHP - Once all the new update have been installed, It would be a good Idea to update your php. Execute the following command to update. Otherwise, dont update. But in my example, I updated it. (do at your own risk).

/etc/init.d/httpd stop

(Stops your web server)

apt-get install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel

(gets the latest PHP)

STEP5 RESTART APACHE AND MYSQL - Once your MYSQL and PHP have been updated start your web server and mysql server with the following comand.

/tec/init.d/httpd start

/etc/init.d/mysqld start

 

After I did this, i didn't get the error anymore

Done. Hope this helps

Posted on: Jun 18, 2006
Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments

# 135145 Reply By SM On Sun Jun 06, 2010 12:37 pm
SM
Hi... i am new to php and mysql... and i am very confuse... where do i type this command lines??? in comand prompt???
please help
# 130412 Reply By PGK On Mon Mar 22, 2010 10:15 pm
PGK
In my case I just copied php.ini from the php folder and pasted at 2 locations - "C:\Windows\" and "c:\program files\php\" then I restarted the Wampserver and the problem was solved..
# 125230 Reply By Fred On Mon Jan 04, 2010 2:41 am
Fred
i am getting the can't install mysql extensions when i try to use phpmyadmin.
it worked until i lost apache( now recovered) and i have checked all the file references and directories all looks ok. i hope someaone can help.
# 103615 Reply By Josh On Mon May 18, 2009 7:39 am
Josh
my fix had to do with the extension_dir line in php.ini.

for some reason the extension directory was set as c:\phpext.

i changed it to c:\php\ext and everything worked perfectly.
# 88921 Reply By PHP On Mon Jan 05, 2009 1:15 pm
PHP
oh good, im glad i was able to help you
# 88920 Reply By giligan On Mon Jan 05, 2009 1:15 pm
giligan
wait, never mind, i forgot to read your post here, i get it now. thanks i got it fixed.
# 88919 Reply By giligan On Mon Jan 05, 2009 1:14 pm
giligan
why do i get this?

phpmyadmin cannot load mysql extension. please check your php configuration
# 87803 Reply By hopier On Sun Dec 28, 2008 8:14 am
hopier
this is what i get, can you help:

cannot load mysql extension. please check your php configuration
# 77906 Reply By drupail On Tue Oct 28, 2008 12:09 am
drupail
well my error is in your ./sites/default/settings.php file you have configured drupal to use a mysql server, however your php installation currently does not support this database type.