Welcome to WebmasterWorld Guest from 107.20.110.201

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problems with MySQL after updates...

cannot load mysql extension

     

Willis

12:35 am on Jan 23, 2005 (gmt 0)

10+ Year Member



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

When means:

[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.

Has anyone had a problem like this before?

coopster

12:42 am on Jan 23, 2005 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



In PHP 5, MySQL is no longer enabled by default, nor is the MySQL library bundled with PHP. More information is available on the PHP MySQL [php.net] manual page.

Willis

3:03 am on Jan 23, 2005 (gmt 0)

10+ Year Member



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.

Thanks again.
-Willis

 

Featured Threads

Hot Threads This Week

Hot Threads This Month