PHP MySQL – Cannot Load MySQL Extension

I faced the problem of loading the MySQL Extentsion when I upgraded the PHP from 5.0 to 5.2.5. I search for websites on HOW-TO load the PHP MySQL Extension. All the websites quoted saying remove the semicolon “;” in the extensions section. It was the same answer even in MySQL forums, which I already knew.

But that didn’t fix the problem. The problem is, the PHP cannot find the extension directory. Update the below line in your “php.ini” file.

; Directory in which the loadable extensions (modules) reside.
extension_dir = "./ext"

Published on: