'How to fix: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_80_nts_x64'?

I get this error while attempting to run a php command from cmd.exe on Windows 10 pro. Looking in the ext folder, I can see I have the dll.

enter image description here

I also have this line in my php.ini file:

enter image description here

What am I doing wrong? I am using php version 8.0.13.

Here's some more info on the exact error:

enter image description here

I greatly appreciate any help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source