PHP not connecting to MySQL?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

   I installed Apache 2.0.55, PHP 5.1.1, and MySQL 5.0.17 (in that
order, on Windows XP). I have managed to get Apache and PHP working
right, and MySQL by itself seems ok too. However, when I try to do any
MySQL command within PHP, it just does nothing. No success, no error.
   I tried uncommenting the line "extension=php_mysql.dll", but when I
restart Apache it tells me "PHP Startup: Unable to load dynamic library
php_mysql.dll - The specified module could not be found.". No matter
where I copy the file so that it can find it. No matter what I put in
   What's wrong? Many thanks in advance.


Re: PHP not connecting to MySQL?

Hi, your need put any .dll files in windows system folder, the best
method your make this.

Put the C:\PHP in "Environment Variables", to you todo this follow this

WindowsXP:Start > (Right Click) My Computer > Advanced > Environment
Variables > System Variables > Path.

Add ";" and the path to PHP, example: C:\PHP.

Restart the windows an try start apache.

If error appear again, try download a zip package of PHP distribution.

Site Timeline