php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30099 mysql_connect dont work on PHP5 + MYSQL5 + IIS6 + WIN 2003 SERVER
Submitted: 2004-09-16 00:26 UTC Modified: 2004-09-29 02:17 UTC
From: fivelfivel at yahoo dot se Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.0 OS: Windows 2003 Server
Private report: No CVE-ID: None
 [2004-09-16 00:26 UTC] fivelfivel at yahoo dot se
Description:
------------
When calling mysql_connect(), running Windows 2003 Server + IIS6 + PHP5 + MYSQL5, the function is not found.

Reproduce code:
---------------
Calling :
<? $connector = mysql_connect("localhost"); ?>

Returns :
Fatal error: Call to undefined function mysql_connect()

Expected result:
----------------
$connector should become an mysql-connection instance and not return any errors.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-16 01:04 UTC] pollita@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

MySQL is no longer enabled by default in the windows binary.  You must manually add the extension=php_mysql.so entry to your php.ini.
 [2004-09-28 00:20 UTC] yakov_br at walla dot com
i have the same problem and i add manually the extension=php_mysql.dll entry to my php.ini.(under C:\WINDOWS\system32).
i still have the problem. please help.
Thanks.
 [2004-09-29 02:17 UTC] fivelfivel at yahoo dot se
You have too change the extensions directory variable : "extension_dir = your dir". After that, restart the net-service : "net stop w3svc" & "net start w3svc" in cmd-promt.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 19:01:28 2024 UTC