Bug #10601 Fatal error: Call to undefined function mysql_connect() ;
Submitted: 12 May 2005 15:11 Modified: 12 May 2005 16:41
Reporter: Mathews Sebastian K Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:mysql4.1. OS:Windows (windows xp)
Assigned to: CPU Architecture:Any

[12 May 2005 15:11] Mathews Sebastian K
Description:
Fatal error: Call to undefined function mysql_connect() 

when connecting PHP5.0 with MySQL4.1., It is giving the above error.

PHP5.0 is properly working with apache2 server.

mysql server also working .

It is happening while connecting PHP and MySql.

How to complie PHP with MySql?
Give the example for that.

How to repeat:
Whlle connecting the PHP 5.0 with MySQl, the Fatal error is coming.

When we try to connect at any time, it will give the same error.

Suggested fix:
How to establish the connection between the PHP and MySql.
[12 May 2005 16:41] MySQL Verification Team
That function is deprecated and it is only available if the client library
is compiled with the flag below:

#ifdef USE_OLD_FUNCTIONS
MYSQL * STDCALL
mysql_connect(MYSQL *mysql,const char *host,
	      const char *user, const char *passwd)