MySQL Forums
Forum List  »  PHP

PHP extension=php_mysql.dll not loading; cannot
Posted by: Joe
Date: July 31, 2005 12:22PM

I've been using MySQL from perl using DBI for some time now, for local programs with no problem.

I run MySQL from the command line, it answers:
[Version: '4.0.20a-debug' socket: '' port: 3306]
looks normal to me.

I cannot seem to get PHP to load the php_mysql extension. I can't imagine what's wrong.

(Unless mysql must be installed as a service for this to work, but that doesn't make much sense to me.)

Environment:
Win 2K
PHP Version 5.0.4 ( Windows NT VAIO 5.0 build 2195)
Apache 2.0.50
MySQL 4.0.20a-debug
phpMyAdmin 2.5.7-pl1

Apache is running. PHP seems to be working and phpinfo() returns a page full of sensible information, except MySQL is nowhere mentioned.

When I run the MySQLAministrator all behaviour is normal, it works fine.

PHPMyAdmin, when tested by:
http://localhost/phpMyAdmin/index.php
says:
[cannot load MySQL extension,
please check PHP Configuration.]

I've been tinkering with Apache and PHP configuration files and doing and checking all the standard things, for more than a day and I'm running out of ideas.

I have noticed that while I have both php_mysql.dll php_mysqli.dll (in \PHP\ext) I only have libmysql.dll (in \PHP).

I've already downloaded PHP 5.0.4 twice and gotten the same files each time.

Has anybody got a clue? I'm starting to loose my mind.

I'm told that installing XAMMP is a simple solution, but I hesitate to overwrite existing installations,especially as I've done real work within them,

Ideas? clues? similar experience?

Anything?

- Joe

Options: ReplyQuote


Subject
Written By
Posted
PHP extension=php_mysql.dll not loading; cannot
Joe
July 31, 2005 12:22PM
September 13, 2005 03:53AM
October 06, 2005 12:37PM
October 06, 2005 12:59PM
November 26, 2005 07:15AM
December 25, 2005 12:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.