homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Problems with MySQL after updates...
cannot load mysql extension

10+ Year Member

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

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?



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

Msg#: 6633 posted 12:42 am on Jan 23, 2005 (gmt 0)

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.


10+ Year Member

Msg#: 6633 posted 3:03 am on Jan 23, 2005 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved