# Database connection "Postgres" is missing, or could not be created

**URL:** <https://discourse.cakephp.org/t/database-connection-postgres-is-missing-or-could-not-be-created/9231>\
**Category:** Need Help\
**Tags:** help\
**Created:** [April 13, 2021, 9:15am UTC](https://discourse.cakephp.org/t/database-connection-postgres-is-missing-or-could-not-be-created/9231 "2021-04-13T09:15:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheikse](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sheikse](https://discourse.cakephp.org/u/sheikse)\
**Post date:** [April 13, 2021, 9:15am UTC](https://discourse.cakephp.org/t/database-connection-postgres-is-missing-or-could-not-be-created/9231/1 "2021-04-13T09:15:26Z")

</div>

Im using cakephp v2.10.24 in AWS EC2 instance (ubuntu), and i want to connect AWS RDS db in my project. In database.php file i have changed datasource from Mysql to Postgres i.e., ‘datasource’ =\> ‘Database/Postgres’.

But when i try to connect, im getting this error message in error log.

2021-04-13 08:48:47 Error: [MissingConnectionException] Database connection “Postgres” is missing, or could not be created.  
Exception Attributes: array (  
‘class’ =\> ‘Postgres’,  
‘message’ =\> ‘Selected driver is not enabled’,  
‘enabled’ =\> false,  
)

---

<div class="post-metadata">

**Author:** ![dirk](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dirk/32/2174_2.png) [@dirk](https://discourse.cakephp.org/u/dirk)\
**Post date:** [April 13, 2021, 11:25am UTC](https://discourse.cakephp.org/t/database-connection-postgres-is-missing-or-could-not-be-created/9231/2 "2021-04-13T11:25:56Z")

</div>

> [@sheikse](#):
>
> Selected driver is not enable

Did you check in your PHP configuration, if the driver is loaded/installed?
