# Issues with migrating configuration to the Mattermost Database

**URL:** https://forum.mattermost.com/t/issues-with-migrating-configuration-to-the-mattermost-database/13282
**Category:** Troubleshooting
**Created:** [April 26, 2022, 5:37pm UTC](https://forum.mattermost.com/t/issues-with-migrating-configuration-to-the-mattermost-database/13282 "2022-04-26T17:37:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![raulpineda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/raulpineda/32/5486_2.png) [@raulpineda](https://forum.mattermost.com/u/raulpineda)
#### Post date: [April 26, 2022, 5:37pm UTC](https://forum.mattermost.com/t/issues-with-migrating-configuration-to-the-mattermost-database/13282/1 "2022-04-26T17:37:11Z")

</div>

**Summary**  
Not able to migrate the configuration to the mattermost DB

**Steps to reproduce**  
Successful curl response to MM server after Fresh install of Mattermost Version 6.6.0 with configuration to AWS Aurora DB.  
Error after running commands:  
sudo su mattermost  
cd /opt/mattermost  
bin/mattermost config migrate ./config/config.json ‘postgres://mmuser:@:5432)/mattermost?sslmode=disable&connect\_timeout=10’

**Expected behavior**  
config migrate runs

**Observed behavior**  
Error: unknown command “config” for “mattermost”

Also get same response from “bin/mattermost config get SqlSettings.DataSource” command. After looking at --help I tried using “bin/mattermost --config get SqlSettings.DataSource” and get the error:  
Error: unknown command “SqlSettings.DataSource” for “mattermost”

---

<div class="post-metadata">

### Author: ![raulpineda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/raulpineda/32/5486_2.png) [@raulpineda](https://forum.mattermost.com/u/raulpineda)
#### Post date: [May 5, 2022, 5:05pm UTC](https://forum.mattermost.com/t/issues-with-migrating-configuration-to-the-mattermost-database/13282/2 "2022-05-05T17:05:26Z")

</div>

I’m using the instructions from:  
[https://docs.mattermost.com/configure/configuation-in-mattermost-database.html](https://docs.mattermost.com/configure/configuation-in-mattermost-database.html)

the command listed on the page doesn’t work for me  
`bin/mattermost config get SqlSettings.DataSource`

I get the error:  
`Error: unknown command "config" for "mattermost" Run 'mattermost --help' for usage.`

Does it work for anyone else?

---

<div class="post-metadata">

### Author: ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)
#### Post date: [July 15, 2022, 1:05pm UTC](https://forum.mattermost.com/t/issues-with-migrating-configuration-to-the-mattermost-database/13282/3 "2022-07-15T13:05:05Z")

</div>

Hi raulpineda,

unfortunately, this documentation is outdated. The command line options for the `mattermost` binary are being moved to the `mmctl` binary, so what previously was `mattermost config migrate` is now `mmctl config migrate`.

Can you try with this command, please?
