# Shopware accesses wrong database

**URL:** https://forum.shopware.com/t/shopware-accesses-wrong-database/48528
**Category:** Administration
**Created:** [27. September 2017 um 22:00 UTC](https://forum.shopware.com/t/shopware-accesses-wrong-database/48528 "2017-09-27T22:00:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![niko\_wrf](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@niko\_wrf](https://forum.shopware.com/u/niko_wrf)
#### Post date: [27. September 2017 um 22:00 UTC](https://forum.shopware.com/t/shopware-accesses-wrong-database/48528/1 "2017-09-27T22:00:44Z")

</div>

Hi,

I have two instances of shopware running, one lying in a directory called “stage” inside the other.  
Both have their own database assigned in their config.php, but still the “live”-instance uses the “stage”-database. I cleared var/cache, but still.

Where else can I check if not the config.php?

Thanks in advance  
Niko

---

<div class="post-metadata">

### Author: ![niko\_wrf](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@niko\_wrf](https://forum.shopware.com/u/niko_wrf)
#### Post date: [27. September 2017 um 22:35 UTC](https://forum.shopware.com/t/shopware-accesses-wrong-database/48528/2 "2017-09-27T22:35:33Z")

</div>

My bad, had the wrong base path in .htaccess&nbsp; ![Foot-in-Mouth](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/foot-in-mouth.png "Foot-in-Mouth")
