MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect()
Posted by: Bee Jee
Date: May 23, 2008 07:20PM

Normally, issues like this take me 20 hrs to fix. Luckily this was a quick fix.

I used the .msi installers for apache 2.2, php 5.2, and mysql 5.0 so the httpd.conf and php.ini were automatically updated.

however, I initially only installed mysqli extension (php_mysqli.dll) and was receiving this error.

to fix, I ran the php binary (as if i was going to install it) and just added the extension mysql (php_mysql.dll) and restarted apache.

i am not sure if there is some compatibility issue with mysqli extension but I would definitely test using the mysql extension

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect()
May 23, 2008 07:20PM


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.