# Mautic 5 apache using official image in kubernetes reinstalls db on restart

**URL:** <https://forum.mautic.org/t/mautic-5-apache-using-official-image-in-kubernetes-reinstalls-db-on-restart/35365>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [March 26, 2025, 4:15pm UTC](https://forum.mautic.org/t/mautic-5-apache-using-official-image-in-kubernetes-reinstalls-db-on-restart/35365 "2025-03-26T16:15:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobAtExpona](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robatexpona/32/13489_2.png) [@RobAtExpona](https://forum.mautic.org/u/RobAtExpona)\
**Post date:** [March 26, 2025, 4:15pm UTC](https://forum.mautic.org/t/mautic-5-apache-using-official-image-in-kubernetes-reinstalls-db-on-restart/35365/1 "2025-03-26T16:15:09Z")

</div>

Official docker image in a kubernetes cluster.  
My Mautic version is:5.2.1  
My PHP version is:  
My Database type and version is: MySQL/MariaDB

**Your problem**  
My problem is: Pods can regularly restart in Kubernetes and when the pod restarts the installer runs again replacing the existing database.

All of the env vars in the deployment descriptor supporting the mautc instance 🙂 - name: MAUTIC\_DB\_HOST  
value: mautic-db  
- name: MAUTIC\_DB\_PORT  
value: “3306”  
- name: MAUTIC\_DB\_NAME  
value: mautic  
- name: MAUTIC\_DB\_USER  
value: mautic  
- name: MAUTIC\_DB\_PASSWORD  
\*\*\*\*  
- name: PHP\_MEMORY\_LIMIT  
value: “4G”  
- name: PHP\_MAX\_EXECUTION\_TIME  
value: “3600”  
- name: PHP\_MAX\_UPLOAD  
value: “200M”  
- name: MAUTIC\_URL  
value: “[https://mautic.example.com](https://mautic.example.com)”  
- name: MAUTIC\_RUN\_INSTALLER  
value: “false”

I am looking for a startup parameter that will prevent the setup tool from reinstalling the database.

How do I tell mautic 5 to reuse the existing database ?
