Why doesn't my PHP install see the MySQL extension?
- by Evan Padd
So I just set up PHP (Version 5.2.17), MySQL (5.5.28), and Apace (2.2) on my Windows 7 computer. I want to test a mysql connection, but the mysql extension is apparently not loaded (based on phpinfo()). Here's what I did:
Changed the extension dir in the php.ini (extension_dir =
".;c:\php\ext") and uncommented the extension=php_mysql.dll line
Copied libmysql.dll to the Apache's bin directory
Added C:\php to the system's $PATH
Restarted the server, then the computer
And it's still not working. What did I miss?
EDIT: I'm looking through phpinfo()'s outout and it says: "Server API | Apache 2.0 Handler" and I'm running 2.2. Is that a problem?