Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Trouble's avatar

PDOMySQL Driver not found

I was wondering if someone could help me. I'm pretty new to laravel.

I'm trying to run the first migration since I setup my database and am getting the following error

[Symfony\Component\Debug\Exception\FatalErrorException] Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found

The original migrations when I set up the database worked, I'm running WAMP 2.5

As far as I can see my database.php file is ok

0 likes
4 replies
billmurrin's avatar
Level 3

Have you already included Doctrine\DBAL into your project

composer require doctrine/dbal
8 likes
Trouble's avatar

I thought I had done it already, do I need to do it before every migration?

Please or to participate in this conversation.