Operating System - HP-UX
1821980 Members
3592 Online
109638 Solutions
New Discussion юеВ

PHP 5, MySQL 4.0., phpMyAdmin

 
Thomas Downing_1
Occasional Contributor

PHP 5, MySQL 4.0., phpMyAdmin

I upgraded Apache using the newest depot file from HP. When I try to access my MySQL db now it says "cannot load mysql extension". The PHP docs and other forums say to recompile for that extension but I got this as a port. Can someone point me to what i should do next? I can use command line to access the database but phpMyAdmin does not work. Any help would be appreciated. HP-UX 11.11
4 REPLIES 4
Steve Post
Trusted Contributor

Re: PHP 5, MySQL 4.0., phpMyAdmin

I can't help much. But I see no one has responded. So let me try at least GUESS. (I'm concerned because I might have the same problem very soon).


"cannot load mysql extension".

It sounds like it doesn't know the "extension" of some file. I assume you kept the previous version of apache. Compare it's httpd.conf file with the new, busted apache. I.e. use "sdiff" and "diff" on the two. I bet there's a spot that talks about extensions that apache will recognize. It bet one of them is missing on the new configuration.

Another possibility is that apache has some thing in its configuration that expects mysql to be at /opt/mysql (just a guess), but your current mysql is at /opt2/mysql (where ever it really is). Maybe new-apache is looking for the actual location of the databases of mysql (it is probably at /var/opt/mysql).

Like I said. These are just fast guesses. Hopefully you will get a better response soon.

STeve
David Logan_2
New Member

Re: PHP 5, MySQL 4.0., phpMyAdmin

Hi,

Sorry this reply is a bit late but PHP stopped including its own libraries at version 5.0. There is some documentation http://www.php.net/README_UPGRADE_51.php#db2

This also gives pointers on resolutions here http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5

Regards
If in trouble, or in doubt, run in circles, scream and shout
Steve Post
Trusted Contributor

Re: PHP 5, MySQL 4.0., phpMyAdmin

Thomas, I don't think I deserve points (that means assign 0 points). But the other guys does. Let me explain that point thing to you.

You assign points to people to respond based on how well they helped. Then other people that come across this forum entry have a clue as to whether or not the suggestions helped.

You can assign between 0 and 10. Yes. A 0 is good enough to fill the square of assigning points.

Before responding, I also click on the author's icon. From there, you can see if they have assigned points to any of their questions. If they haven't, I figure there is no point in trying to help. How would I know if my advice helped or not? How would any one else? So, why would I bother to try to help someone that doesn't want the help? ....hmmm. Why was the question even posted?

Steve
MEANWHILE, I'll take the advice on this forum.
Thomas Downing_1
Occasional Contributor

Re: PHP 5, MySQL 4.0., phpMyAdmin

Thanks to David Logan. I will have to recompile PHP 5 to work in my environment.