# Am I missed if mattermost can be deployed with master-slave MySQL database?

**URL:** <https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681>\
**Category:** Troubleshooting\
**Created:** [November 3, 2020, 10:35am UTC](https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681 "2020-11-03T10:35:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheRND](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/thernd/32/4145_2.png) [@TheRND](https://forum.mattermost.com/u/TheRND)\
**Post date:** [November 3, 2020, 10:35am UTC](https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681/1 "2020-11-03T10:35:26Z")

</div>

Hello friends! Does anyone have experience running mattermost team edition with master-slave MySQL database? I was unable to find information on this topic, but maybe I was searching the wrong way.

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [November 3, 2020, 4:35pm UTC](https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681/2 "2020-11-03T16:35:49Z")

</div>

Hello, @TheRND

The configuration for high availability on Mattermost is available on the E20 offering as mentioned in the [High Availability Cluster](https://docs.mattermost.com/deployment/cluster.html#database-configuration):

> Use the read replica feature to scale the database. The Mattermost server can be set up to use one master database and multiple read replica databases. Mattermost distributes read requests across all databases, and sends write requests to the master database, and those changes are then sent to update the read replicas.

May I know if it is a crucial requirement for you to have it? If yes, give the Trial a shot and see if it is align with your needs.

---

<div class="post-metadata">

**Author:** ![TheRND](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/thernd/32/4145_2.png) [@TheRND](https://forum.mattermost.com/u/TheRND)\
**Post date:** [January 26, 2021, 11:19pm UTC](https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681/3 "2021-01-26T23:19:11Z")

</div>

It’s important but not crucial. One more question - I found a place in code, where license is checked to make slave DB feature available. Is it legal to patch this check and rebuild server from source to use slave DB? (I’m not too good in licensing issues and such)

---

<div class="post-metadata">

**Author:** ![ahmaddanial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/ahmaddanial/32/2938_2.png) [@ahmaddanial](https://forum.mattermost.com/u/ahmaddanial)\
**Post date:** [January 26, 2021, 11:34pm UTC](https://forum.mattermost.com/t/am-i-missed-if-mattermost-can-be-deployed-with-master-slave-mysql-database/10681/4 "2021-01-26T23:34:13Z")

</div>

Hello, @TheRND

Can you explain a little bit more on the patch that you are referring to? By default, you need the E20 license to run the [multi-database](https://docs.mattermost.com/deployment/cluster.html#deploying-a-multi-database-configuration) configuration. So, I am not entirely sure what you mean.

Once I get the clarification, I will reach out to the team internally to verify this.
