# \[Solved\] Persistence url keeps changing

**URL:** <https://community.openhab.org/t/solved-persistence-url-keeps-changing/20696>\
**Category:** Persistence Services\
**Tags:** mysql, persistence\
**Created:** [January 19, 2017, 8:59pm UTC](https://community.openhab.org/t/solved-persistence-url-keeps-changing/20696 "2017-01-19T20:59:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dim](https://community.openhab.org/user_avatar/community.openhab.org/dim/32/4568_2.png) [@Dim](https://community.openhab.org/u/Dim)\
**Post date:** [January 19, 2017, 9:19pm UTC](https://community.openhab.org/t/solved-persistence-url-keeps-changing/20696/2 "2017-01-19T21:19:32Z")

</div>

> [@DanielMalmgren](#):
>
> Is this saved somewhere else as well or where is it coming from?

Maybe this will help:

> [@MQTT config under OH2](https://community.openhab.org/t/mqtt-config-under-oh2/15497/9):
>
> @Rob_Pope I had a similar problem in the past… It was due to OpenHab 2 loading up the default mqtt.cfg config file (with the sample \<broker\> name)… it was my mistake since I removed the comments from the lines without adjusting the broker name… After I fixed the mistake, the \<broker\> info still remained (as a second broker) in OH2 “internal database” (I don’t know how to call it :)) and was causing errors because all other parameters for \<broker\> were null. Try to check with the Karaf Console …

Check in karaf if there is any stable config parameters for mysql & jdbc

```auto
config:list "(service.pid=org.openhab.mysql)"
config:list "(service.pid=org.openhab.jdbc)"

```

If there are wrong stuff there, delete the stored config:

```auto
config:delete org.openhab.mysql
config:delete org.openhab.jdbc

```

Fix your .config and .persist files and let OH2 re-read them to populate the stored configs.

Oops.. I missed that part:

> [@DanielMalmgren](#):
>
> when I look in the config files the url is changed back

You mean that your /etc/openhab2/services/mysql.cfg file is being updated by OH2? (this shouldn’t happen…)

---

_[View the full topic](https://community.openhab.org/t/solved-persistence-url-keeps-changing/20696)._
