MySQL Forums
Forum List  »  PHP

Re: Cannot load mysql extension. Please check your PHP configuration
Posted by: Nancy Freeman
Date: July 01, 2009 08:11PM

Peter Brawley Wrote:
> Nancy
> So, your installation error yet remains a secret.
> 1. I did not see a post of your result of running
> this code ...
> <?php
> mysql_connect('HOST','USR','PWD') or
> die(mysql_error());
> ?>
> in a text file called connect.php, from a command
> line prompt in your PHP installation folder, viz
> ...
> php connect.php

"Fatal error: call to undefined function mysql_connect() in c:\php\connect.php on line 2"

> 2. Where is Apache's copy of php.ini?

c:\Program Files/Windows NT

> 4. Is the PHP installation dir in the path?


> 5. Where did you put libmysql.dll, php_mysql.dll,
> php_mysqli.dll?

libmysql.dll is in c:\php
php_mysql.dll and php_mysqli.dll are in c:\php\ext
(Note I also tested with libmysql.dll in c:\php\ext, and that didn't work)

> 4. What are your php.ini settings for ...
> LoadModule php5_module
This keyword does not appear in my php.ini

> extension_dir
extension_Dir = "c:/php/ext"

> mysql.default_host
mysql.default_host =

> extension=php_mysql...


Options: ReplyQuote

Written By
Re: Cannot load mysql extension. Please check your PHP configuration
July 01, 2009 08:11PM

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.