Skip to content

Commit

Permalink
Update manual-postgres-migration.rst
Browse files Browse the repository at this point in the history
We need to copy the MM config from MySQL DB not postgres.
  • Loading branch information
vish9812 authored Jan 9, 2025
1 parent dd7bcae commit 806e5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/deploy/manual-postgres-migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Use the ``mmctl config migrate`` command to :ref:`migrate your config <manage/mm

.. code-block:: sh
mmctl config migrate "postgres://<DB_USER>:<DB_PASS>@<DB_HOST>:5432/<DB_NAME>?sslmode=disable&connect_timeout=10" /opt/mattermost/config/config.json --local
mmctl config migrate "DB_USER:DB_PASS@tcp(localhost:3306)/DB_NAME?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s&multiStatements=true" /opt/mattermost/config/config.json --local
Where ``<DB_USER>``, ``<DB_PASS>``, ``<DB_HOST>``, and ``<DB_NAME>`` are replaced with your environment values. Ensure you use ``--local`` when running this command. The first parameters (``<DB_USER>``, ``<DB_PASS>``) is the database the configuration is stored in, the second parameter (``<DB_HOST>``, ``<DB_NAME>``) is the file we are saving the configuration to.

Expand Down

0 comments on commit 806e5b7

Please sign in to comment.