# DoctrineDBALExceptionDriverException: An exception occured in driver: could not find driver

**URL:** <https://forum.mautic.org/t/doctrinedbalexceptiondriverexception-an-exception-occured-in-driver-could-not-find-driver/9468>\
**Category:** Product Support\
**Created:** [September 14, 2017, 11:58am UTC](https://forum.mautic.org/t/doctrinedbalexceptiondriverexception-an-exception-occured-in-driver-could-not-find-driver/9468 "2017-09-14T11:58:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RandomUser](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RandomUser](https://forum.mautic.org/u/RandomUser)\
**Post date:** [September 14, 2017, 11:58am UTC](https://forum.mautic.org/t/doctrinedbalexceptiondriverexception-an-exception-occured-in-driver-could-not-find-driver/9468/1 "2017-09-14T11:58:31Z")

</div>

Hello there,  
  
After installing the cronjobs as per the documentation, I get those error messages everytime a command is triggered:

Quote:

DoctrineDBALExceptionDriverException: An exception occured in driver: could not find driver (uncaught exception) at /var/www/mysite/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php

  
I have not idea what this is...My phpinfo() shows I have PDO and pdo\_mysql enabled with the drivers "mysql" and "sqlite".  
Please help.  
  
MORE INFO:  
This is what i see inside phpinfo():  
PDO Driver for MySQL enabled  
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: SOME\_HASH\_HERE $

---

<div class="post-metadata">

**Author:** ![RandomUser](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RandomUser](https://forum.mautic.org/u/RandomUser)\
**Post date:** [September 14, 2017, 11:58am UTC](https://forum.mautic.org/t/doctrinedbalexceptiondriverexception-an-exception-occured-in-driver-could-not-find-driver/9468/2 "2017-09-14T11:58:31Z")

</div>

Hello there,  
After installing the cronjobs as per the documentation, I get those error messages everytime a command is triggered:

> [@](#):
>
> DoctrineDBALExceptionDriverException: An exception occured in driver: could not find driver (uncaught exception) at /var/www/mysite/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php

I have not idea what this is…My phpinfo() shows I have PDO and pdo\_mysql enabled with the drivers “mysql” and “sqlite”.  
Please help.

MORE INFO:  
This is what i see inside phpinfo():  
PDO Driver for MySQL enabled  
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: SOME\_HASH\_HERE $

---

<div class="post-metadata">

**Author:** ![RandomUser](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@RandomUser](https://forum.mautic.org/u/RandomUser)\
**Post date:** [September 14, 2017, 6:10pm UTC](https://forum.mautic.org/t/doctrinedbalexceptiondriverexception-an-exception-occured-in-driver-could-not-find-driver/9468/3 "2017-09-14T18:10:34Z")

</div>

Alright, fixed it.  
It looks like I have two php versions installed, one for apache, one for the php cli. And of course, pdo\_mysql was enabled for apache only, and the cronjob use the CLI. So I had to activate pdo\_mysql for the cli.
