Uncomment it in php.ini and restart the server.
extension=pdo_mysql
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
whenever i want to connect php with mysql localhost gives this following error : "Fatal error: Uncaught PDOException: could not find driver in C:\Users\Pc\webpage\demo\index.php:12 Stack trace: #0 C:\Users\Pc\webpage\demo\index.php(12): PDO->__construct('mysql:host=loca...') #1 {main} thrown in C:\Users\Pc\webpage\demo\index.php on line 12"
Please or to participate in this conversation.