I have read this post
and it didn't really help.
You most likely have two separate php.ini files - one for your web server, one for the command line interface. Make sure you're editing the correct file; Run:
which will give you output similar to the one below:
C:\>php --ini Configuration File (php.ini) Path: C:\Windows Loaded Configuration File: C:\Path\To\Your\php\php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none)
Now, edit the php.ini file and make sure that not only the following lines are un-commented:
but also this one (which, according to the file you've posted, you have commented out at the moment):
; extension_dir = "ext"
The above one should be configured to point to your
ext directory, where the php_mysql.dll file is stored. Like this (remember about double quotes):
Hope this helps.