LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-05-2007, 12:24 AM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Rep: Reputation: 30
phpMyAdmin - Cannot load mySQL extension


Hey all,
Having one long night trying to get phpMyAdmin working on my RHEL4 box. Got mysql install properly:
Code:
$rpm -qa | grep -i mysql
MySQL-devel-community-5.0.45-0.rhel4
MySQL-shared-community-5.0.45-0.rhel4
MySQL-client-community-5.0.45-0.rhel4
MySQL-server-community-5.0.45-0.rhel4
and have php installed:
Code:
$rpm -qa | grep -i php
php-ldap-4.3.9-3.15
php-4.3.9-3.15
php-pear-4.3.9-3.15
and have apache up and working.

When i try to open up phpMyAdmin i get:
Code:
Cannot load mysql extension. Please check your PHP configuration.
I have read many threads and from what I see I need to install php-mysql.
I downloaded the RPM and trying to install, and get the following:
Code:
$rpm -ivh php-mysql-4.3.9-3.22.9.i386.rpm
error: Failed dependencies:
        libmysqlclient.so.14 is needed by php-mysql-4.3.9-3.22.9.i386
        libmysqlclient.so.14(libmysqlclient_14) is needed by php-mysql-4.3.9-3.22.9.i386
        php = 4.3.9-3.22.9 is needed by php-mysql-4.3.9-3.22.9.i386
    Suggested resolutions:
        mysql-4.1.20-1.RHEL4.1.i386.rpm
As well i tried the php-mysql-4.3.9-3.15.i386.rpm package, maybe version needed to be the same as PHP. Guess not.

I would much prefer to keep mysql 5 and not have to backtrack.

my my.cnf as follows:
Code:
$cat /etc/my.cnf 
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
     
[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Any help would be awsome!
Thanks so much.
 
Old 10-05-2007, 12:37 AM   #2
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
another note:

phpinfo reports:

Code:
--with-mysql=shared,/usr' '--with-pgsql=shared' '-
and
Code:
$which mysql
/usr/bin/mysql
 
Old 10-05-2007, 02:59 PM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
I did finally get php-mysql installed,
restarted mysql, and apache

But still getting
Code:
Cannot load mysql extension. Please check your PHP configuration. - Documentation
I have tried so many things. Not sure what to do.

Anyone have a suggestion would be awsome!
 
Old 10-09-2007, 09:32 AM   #4
kishore2k4
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
I am having the exact same problem but with php5. Any suggestions?

Update:

Problem solved by installing php-mysql of the same version as my php installation

Last edited by kishore2k4; 10-09-2007 at 11:51 AM.
 
  


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 can't load mysql extension? stermarc Linux - Server 7 10-18-2006 02:43 PM
SuSe 10 - PHPMyAdmin, Cannot Load PHP Session Extension mindjet Suse/Novell 2 02-19-2006 10:39 AM
php cannot load mysql extension no_names_left Linux - Software 4 03-02-2005 07:31 PM
phpmyadmin cannot load mysql extension mandrake 10.1 oneride21 Linux - Newbie 1 10-08-2004 09:40 AM
cannot install PHPMYADMIN MySQL Extention will not load k41184 Linux - Software 1 06-02-2004 01:28 PM


All times are GMT -5. The time now is 05:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration