LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-01-2009, 02:50 PM   #1
camposomar
LQ Newbie
 
Registered: Aug 2009
Location: Colombia
Distribution: CentOs - Ubuntu
Posts: 14

Rep: Reputation: 0
Question Cannot load mysql extension.


hello all.

when try access to my phpmyadmin appear show.


phpMyAdmin - Error

Cannot load mysql extension. Please check your PHP configuration. - Documentation

in the php.ini dont found "extension=mysql.so" , but dont know how install this extension, somebody can help me?

[root@localhost /]# php -v
PHP 5.3.0 (cli) (built: Jul 19 2009 17:55:08)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
[root@localhost /]# mysql -V
mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1
[root@localhost /]#

thx
 
Old 10-01-2009, 03:08 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
in the php.ini dont found "extension=mysql.so" , but dont know how install this extension, somebody can help me?
You have to install the package php-mysql to add mysql support in php.

Regards
 
Old 10-01-2009, 03:11 PM   #3
camposomar
LQ Newbie
 
Registered: Aug 2009
Location: Colombia
Distribution: CentOs - Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by bathory View Post
You have to install the package php-mysql to add mysql support in php.

Regards
i try install but....

[root@localhost /]# yum install php-mysql
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: www.gtlib.gatech.edu
* extras: www.gtlib.gatech.edu
* rpmforge: ftp-stud.fht-esslingen.de
* updates: dist1.800hosting.com
* base: www.gtlib.gatech.edu
* centosplus: mirror.chpc.utah.edu
* addons: centos.promopeddler.com
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package php-pdo.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-pdo
---> Package php-mysql.i386 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mysql
--> Finished Dependency Resolution
php-pdo-5.1.6-23.2.el5_3.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-pdo-5.1.6-23.2.el5_3.i386 (updates)
php-mysql-5.1.6-23.2.el5_3.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-mysql-5.1.6-23.2.el5_3.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-mysql-5.1.6-23.2.el5_3.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-pdo-5.1.6-23.2.el5_3.i386 (updates)
[root@localhost /]#


:'(
 
Old 10-01-2009, 03:30 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You have php-5.3.0. How did you installed it? If you used a package, you need also the php-mysql package for that version of php.
If you compiled it from source, you have to recompile using "--with-mysql".
 
Old 10-01-2009, 03:59 PM   #5
camposomar
LQ Newbie
 
Registered: Aug 2009
Location: Colombia
Distribution: CentOs - Ubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by bathory View Post
You have php-5.3.0. How did you installed it? If you used a package, you need also the php-mysql package for that version of php.
If you compiled it from source, you have to recompile using "--with-mysql".
jejej don't remember,how was installed.. how can uninstall ?? for reinstall again.. you know some manual for this?
 
Old 10-01-2009, 04:32 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Run
Code:
rpm -qa|grep php
. If it's installed from package you can use
Code:
rpm -e php-x.y.z
to uninstall.
If it's installed from source, that is the more probable as 5.3.0 is the latest version, it's better to rebuild adding mysql support, because otherwise you have to manually delete the installed files from various locations. You can run:
Code:
php -i|grep Configure
to see what were the ./config options, so you can run
Code:
make distclean
./configure --<options from the above command> --with-mysql
make
su 
make install
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
phpMyAdmin - Cannot load mySQL extension blizunt7 Linux - Software 3 10-09-2007 09:32 AM
Urgent-Cannot load mysql extension sijomon_nd Red Hat 1 08-30-2007 03:53 AM
phpmyweb cannot load mysql extension dfw123 Linux - Server 8 04-24-2007 05:35 PM
PhpMyAdmin can't load mysql extension? stermarc Linux - Server 7 10-18-2006 02:43 PM
php cannot load mysql extension no_names_left Linux - Software 4 03-02-2005 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration