DB migration from postgres to MySQL

I have hue running on k8s cluster, I want to migrate from Postgres to MySQL.
In the documentation https://docs.gethue.com/administrator/administration/database/#mysql
it is mentioned > Shut down Hue if it is running. before running /usr/share/hue/build/env/bin/hue dumpdata > $some-temporary-file.json but stopping hue is bringing down the pod, then how we can execute /usr/share/hue/build/env/bin/hue dumpdata > $some-temporary-file.json ?? and why do we really need to stop hue service before dumping data ?? is there any way to bypass it??