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?

Yes

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

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
extension=php_msql.dll
extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

Options: ReplyQuote


Subject
Written By
Posted
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.