I have been trying to connect to MySQL from PHP using PDO. However, I get this error message:
PHP Fatal error: Uncaught PDOException: could not find
In my PHP 7.4 I didn't get php.ini. Instead, I have php.ini-development and php.ini-production. So, I have created a new php.ini file only and copied the configurations into it.
Then I have uncommented and changed the extension directory to the full installation path.
extension_dir = "C:/php/ext"
And uncommented:
extension=pdo_mysql