Jump to content

Getting PHP5 to work with MySQL


bonekrusher

Recommended Posts

Hi I am trying to get PHP5 to work with MySQL. I have followed these directions:

Getting PHP5 to work with MySQL - Official Info
Unfortunately PHP5 removed built-in support for MySQL. To get it to work, 
the easiest way is to copy the mysql library file by hand. Open the folder 
you unzipped your PHP to. Copy the libmysql.dll file (should be located like 
E:\php\libmysql.dll ) into your Window's System folder (usually 
C:\Windows\System32\ although might be C:\WinNT\System\ or something).

Then open up your php.ini in a text editor and search for ;extension=php_mysql.dll 
and remove the ; infont of that line. Restart Apache and see if you get any errors. 
If it complains about "php_mysql.dll" either your extension directory isn't correct or 
windows can't find libmysql.dll 

 

I get this error:

 

Fatal error: Call to undefined function mysql_connect()

 

 

Am I missing something?

Link to comment
https://forums.phpfreaks.com/topic/123110-getting-php5-to-work-with-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.