DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a special need to run MySQL 3.23.58 and I want to use phpMyAdmin with it.
When I go to my page http://localhost/phpMyAdmin/ it complains with: cannot load mysql extension;
please check PHP configuration
Documentation
I read the documentation and it says: To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded 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 software package called "PHP-MySQL" or something similar.
So I try to apt-get install php4-mysql but that tells: The following extra packages will be installed:
libmysqlclient14 mysql-common
The following NEW packages will be installed:
libmysqlclient14 mysql-common php4-mysql
Obviously I don't want mysql-common....
So I did apt-get install php4-mysql --print-uris and then wget just the deb package for php4-mysql. Except when I dpkg -i php4-mysql_4.4.0-4_i386.deb... the system tells me:
dpkg: dependency problems prevent configuration of php4-mysql:
php4-mysql depends on libmysqlclient14; however:
Package libmysqlclient14 is not installed.
dpkg: error processing php4-mysql (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php4-mysql
Then I apt-get remove php4-msql and try dpkg -i ./php4-mysql_4.4.0-4_i386.deb --force-yes the system still complains with: Unpacking replacement php4-mysql ...
dpkg: error processing --force-yes (--install):
cannot access archive: No such file or directory
dpkg: dependency problems prevent configuration of php4-mysql:
php4-mysql depends on libmysqlclient14; however:
Package libmysqlclient14 is not installed.
dpkg: error processing php4-mysql (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
--force-yes
php4-mysql
I'm probably doing something really dumb since I'm fighting it all evening... but how the heck do you shove a package on to a system???? Praise Debian for saving me from myself, but all I want is that stinkin *.so file so my phpMyAdmin will launch. ha-ha!
So I try to apt-get install php4-mysql but that tells: The following extra packages will be installed:
libmysqlclient14 mysql-common
The following NEW packages will be installed:
libmysqlclient14 mysql-common php4-mysql
Well since I have a special need to run MySQL 3.23.58 which I have compiled and installed from source(from mysql's site), I'm assuming that installing the package "mysql-common" will taint my 3.23.58 by putting newer (or different?) MySQL related files into my test system.
I found a buddy with a similarly built Linux box so were going to install the needed packages on his box and rob the individual files as needed. If that doesn't work, I'll try the install mysql-common and then re-install MySQL over it from source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.