MySQL Forums
Forum List  »  PHP

Re: unable to connect to mysql on localhost
Posted by: sanjeev thakur
Date: February 19, 2009 12:15AM

I have installed php5.1 and mysql5.0 with iis installed.My operating system is windows.Though php and mysql are running but individually but i am not able to connect them.In the browser its showing ,Fatal error: Call to undefined function mysql_connect() .
I have made changes in php.ini file located in C:\windows.the changes made are
->specifying the path in the extension directory i.e
converting extension_dir=".\" to extension_dir="C:\php\ext" where the file php_mysql.dll is kept
and uncommented the extension i.e
:extension=php_mysql.dll to extension=php_mysql.dll

Options: ReplyQuote




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.