PHP not loading MySQL

Discussion in 'PHP' started by ElectronConstructor, Nov 21, 2007.

  1. #1
    I have installed PHP 5.2.5 using the windows installer, included the MySQL extension, and set it to configure Apache 2.2.x, I am using Apache 2.2.6 on Windows XP. The installation was success full but when I start my apache service the following is generated in my error log:

    [Wed Nov 21 13:52:51 2007] [notice] Parent: Created child process 3680
    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0

    Though the file does exist in that location.
     
    ElectronConstructor, Nov 21, 2007 IP
  2. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #2
    if you just want a quick install of php with mysql then i suggest you go for prepackaged executables like xampp :)
     
    serialCoder, Nov 21, 2007 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Where is the file: php_mysql.dll located?

    For example on my system, the file is located in PHP extensions directory: c:\php\ext, so I edit php.ini to:

    
    extension_dir = "c:\php\ext"
    
    Code (markup):
    If the path is correct and the extensions exist in it, it will work.

    Peace,
     
    Barti1987, Nov 21, 2007 IP