Why doesn't my PHP install see the MySQL extension?
        Posted  
        
            by 
                Evan Padd
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Evan Padd
        
        
        
        Published on 2012-11-22T15:15:45Z
        Indexed on 
            2012/11/22
            23:01 UTC
        
        
        Read the original article
        Hit count: 319
        
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 theextension=php_mysql.dllline
- Copied libmysql.dll to the Apache's bindirectory
- Added C:\phpto 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? 
© Server Fault or respective owner