# Error when running any console command like php bin/console cache:clear

**URL:** <https://forum.mautic.org/t/error-when-running-any-console-command-like-php-bin-console-cache-clear/30307>\
**Category:** Product Support\
**Created:** [December 24, 2023, 8:15pm UTC](https://forum.mautic.org/t/error-when-running-any-console-command-like-php-bin-console-cache-clear/30307 "2023-12-24T20:15:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiavi](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@ramiavi](https://forum.mautic.org/u/ramiavi)\
**Post date:** [December 24, 2023, 8:15pm UTC](https://forum.mautic.org/t/error-when-running-any-console-command-like-php-bin-console-cache-clear/30307/1 "2023-12-24T20:15:28Z")

</div>

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 8.3.1  
My Database type and version is: 10.6.12-MariaDB

**Your problem**  
My problem is: cant run any console command

These errors are showing in the log:  
In ConnectionFactory.php line 136:

An exception occurred while establishing a connection to figure out your platform version.  
You can circumvent this by setting a ‘server\_version’ configuration value

For further information have a look at:  
[https://github.com/doctrine/DoctrineBundle/issues/673](https://github.com/doctrine/DoctrineBundle/issues/673)

In AbstractMySQLDriver.php line 128:

An exception occurred in driver: could not find driver

In Exception.php line 18:

could not find driver

In PDOConnection.php line 40:

could not find driver

Steps I have tried to fix the problem:

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 10, 2024, 9:23am UTC](https://forum.mautic.org/t/error-when-running-any-console-command-like-php-bin-console-cache-clear/30307/2 "2024-01-10T09:23:08Z")

</div>

Related GitHub issue: [Mautic 5.0.0 installation issue · Issue #13186 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/13186)

Are you sure you’ve provided correct database credentials? Can you connect with those credentials from other tool like Sequel Pro for example?
