MySQL Forums
Forum List  »  PHP

Re: Fatal error: Call to undefined function mysql_connect() - Check DLL Version
Posted by: S Smith
Date: May 16, 2008 06:31AM

In addition to turning on the extensions properly in the ini,
the 5 dlls mentioned are important (php_mysql, libmysql, libmysqli, php5ts, php5apache) but also make sure you have the right version. The php dlls are compiled with version information (usually) so viewing the file properties and ensuring they match with your version is crucial.

I have v5.2.55 installed and working with MSSQL, but on adding MySQL had the above error. After several unsuccessful attempts and using dlls from another version of 5 (5.0.33), I copied the right version to system32 (when I discovered the blunder), restarted the Apache Server and all was well. I also copied php_mysqli dll to system32, JIC.

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect() - Check DLL Version
May 16, 2008 06:31AM


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.