Menu

How to Fix Laravel's `PDOException: could not find driver` Error on Windows 11
πŸ“°

How to Fix Laravel's `PDOException: could not find driver` Error on Windows 11

DEV Community: laravelΒ·Vincent TommiΒ·about 7 hours ago
#CugpZ193
#devtolaravel#devto#dev#enter#exit
Long article (1441 words) β€” no AI summary yet.
Reading 0:00
15s threshold

If you are developing a Laravel application on Windows and suddenly encounter this error:

PDOException: could not find driver

Enter fullscreen mode

Exit fullscreen mode

Don't panic. You probably don't need to reinstall Laravel, Composer, or even PHP.

I recently encountered this issue while working on my Laravel project, SamuPOS , after migrating my development environment to Windows 11.

The problem was related to PHP database extensions, specifically the missing or disabled pdo_mysql extension.

In this tutorial, I'll walk you through how to identify the problem, enable the required PHP extension, and verify that Laravel can communicate with your MySQL database.

Whether you are a beginner or an experienced developer setting up Laravel on Windows, this guide should help you troubleshoot the issue.

1.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.