# What is the default maxConns for sql datasource?

**URL:** <https://community.temporal.io/t/what-is-the-default-maxconns-for-sql-datasource/4210>\
**Category:** Community Support\
**Tags:** mysql\
**Created:** [March 17, 2022, 4:36pm UTC](https://community.temporal.io/t/what-is-the-default-maxconns-for-sql-datasource/4210 "2022-03-17T16:36:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![voropava](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/voropava/32/1840_2.png) [@voropava](https://community.temporal.io/u/voropava)\
**Post date:** [March 17, 2022, 4:36pm UTC](https://community.temporal.io/t/what-is-the-default-maxconns-for-sql-datasource/4210/1 "2022-03-17T16:36:26Z")

</div>

Hey, folks. What is the default maxConns for sql datasource?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [March 18, 2022, 5:54pm UTC](https://community.temporal.io/t/what-is-the-default-maxconns-for-sql-datasource/4210/2 "2022-03-18T17:54:37Z")

</div>

Hi @voropava max conns is configurable, see [here](https://github.com/temporalio/temporal/blob/master/common/config/config.go#L312)  
You can see defaults in appropriate configs, for example for mysql [primary db](https://github.com/temporalio/temporal/blob/master/config/development_mysql.yaml#L14) and [visibility db](https://github.com/temporalio/temporal/blob/master/config/development_mysql.yaml#L25). Hope this helps.
