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