views:

400

answers:

2

In my googling it seems as though the mysql functions are not included in the base download of php5? I am seeing instructions for Linux, but I am running on a WAMP. Can anyone help me get these enabled?

I am fairly sure I have mysql/php/apache configured properly now (certainly apache and php are working), but I get an error when I try to do any database functions.

My only php.ini file is in J:\php, and that is part of my windows PATH. The only thing, based on what I've seen and read is that perhaps I have an old version of the DLLs. Does someone have a link to known good ones? I am using PHP 5.2.11 and Apache 2.2

+2  A: 

You'll need to download php_mysql.dll as it is not longer build-in in the newer php downloads. (more info)

Aziz
Hmm... I have php_mysql.dll and libmysql.dll in my php\ext folder, I uncommented extension=php_mysql.dll, and added extension_dir = "J:\php\ext" in my php.ini file, but I am recieving the same error message...
Chris Sobolewski
check phpinfo() to ensure that the extension is working
Aziz
also, check (simi_def at c2 dot hu)'s comment in that php manual page.
Aziz
Thank you for your help.I think they issue has to do with a previous and incorrect WAMP stack install. I've decided that for now it's easiest to just use the WAMP package available on SourceForge.
Chris Sobolewski
+1  A: 

copy libmysql.dll in C:\windows\system. Restart Apache.

rubayeet