Msg#: 6633 posted 12:35 am on Jan 23, 2005 (gmt 0)
I just spent the day updating my home computer to the following versions:
Apache: 2.0.5 PHP: 5.0.3 MySQL: 4.1.9
Each are working fine on thier own, however I cannot get PHP to work with MySQL.
On my own scripts when I try to connect to a database, I get:
Fatal error: Call to undefined function mysql_connect() in.....
When I try 'phpMyAdmin' I get:
cannot load mysql extension, please check PHP Configuration Documentation
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". 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.
I don't understand what its telling me to do.
MySQL as commented works alright. I can use MySQLcc to access my databases.
Thanks for the info, Everythings workin again. Copied libmysql.dll like instructed n took a crack at "--with-mysql=/path/to/mysql" (considering no errors came from it I assume I used it correctly) and enabled php_mysql.dll in php.ini
Dunno if all that was nessessary but heck things are workin thats all I care.
.. ya know they should have been smart and give a checkbox asking if a person wanted them to do it automaticly or not. Oh well.