# Where do I keep my database details?

**URL:** <https://discourse.laminas.dev/t/where-do-i-keep-my-database-details/1612>\
**Category:** API Tools\
**Created:** [May 15, 2020, 4:30am UTC](https://discourse.laminas.dev/t/where-do-i-keep-my-database-details/1612 "2020-05-15T04:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adarsh\_Khatri](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/adarsh_khatri/32/713_2.png) [@Adarsh\_Khatri](https://discourse.laminas.dev/u/Adarsh_Khatri)\
**Post date:** [May 15, 2020, 4:30am UTC](https://discourse.laminas.dev/t/where-do-i-keep-my-database-details/1612/1 "2020-05-15T04:30:52Z")

</div>

I am able to connect with my database having these in `local.php` but as soon as I deploy it then the system is unable to get from `local.php`, I will have to add it to `module.config.php`.

What is the best approach to keep DB related or global configs?

I have followed this: [GitHub - laminas-api-tools/statuslib-example: Library for use with Laminas API Tools documentation examples](https://github.com/laminas-api-tools/statuslib-example)

The error it is throwing after deploying is this:

> Service with name “StatusLib\TableGateway” could not be created. Reason: Unable to create StatusLib\TableGateway due to missing “Db\StatusLib” service

I have disabled the cache.
