I tried with the extension=pdo_mysql in the php.ini and restarted the Apache server, but by phpinfo() the PDO drivers row is still empty. The extension is there: ext/php_pdo_mysql.dll. What am I doing wrong?
After some investigation, the apache error log looks like this:
The 'Apache HTTP Server' service is restarting.
The 'Apache HTTP Server' service has restarted.
ice] [pid 1892:tid 336] AH00424: Parent: Received restart signal -- Restarting the server.
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: C:\\php\\ext\\pdo_mysql (A megadott modul nem tal\xc3\xa1lhat\xc3\xb3.), C:\\php\\ext\\php_pdo_mysql.dll (A megadott modul nem tal\xc3\xa1lhat\xc3\xb3.)) in Unknown on line 0
[Wed Oct 06 20:11:56.529613 2021] [mpm_winnt:notice] [pid 1892:tid 336] AH00455: Apache/2.4.50 (Win64) OpenSSL/1.1.1l PHP/7.4.24 configured -- resuming normal operations
[Wed Oct 06 20:11:56.529613 2021] [mpm_winnt:notice] [pid 1892:tid 336] AH00456: Server built: Oct 5 2021 10:28:22
[Wed Oct 06 20:11:56.529613 2021] [core:notice] [pid 1892:tid 336] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Wed Oct 06 20:11:56.529613 2021] [mpm_winnt:notice] [pid 1892:tid 336] AH00418: Parent: Created child process 1496
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: C:\\php\\ext\\pdo_mysql (A megadott modul nem tal\xc3\xa1lhat\xc3\xb3.), C:\\php\\ext\\php_pdo_mysql.dll (A megadott modul nem tal\xc3\xa1lhat\xc3\xb3.)) in Unknown on line 0
[Wed Oct 06 20:11:57.509614 2021] [mpm_winnt:notice] [pid 1496:tid 880] AH00354: Child: Starting 64 worker threads.
[Wed Oct 06 20:11:58.509615 2021] [mpm_winnt:notice] [pid 7620:tid 880] AH00364: Child: All worker threads have exited.
It looks like PHP wants to load the extension from C:/php/ while I have it in a completely different directory.