Skip to content
Advertisement

artisan migration error “Class ‘Doctrine\DBAL\Driver\PDOMySql\Driver’ not found”

When trying to run a migration I get the error Artisan migration

[SymfonyComponentDebugExceptionFatalThrowableError]

Class ‘DoctrineDBALDriverPDOMySqlDriver’ not found

i already installed doctrine/dbal using

composer require doctrine/dbal

and on my composer.json already had

doctrine/dbal”: “^3.0”

but i still got this error

Advertisement

Answer

This new version is having this issue.
a workaround for that can be:

  1. change version to "doctrine/dbal": "^2.12.1" in composer.json file
  2. run composer update
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement