# Error in SW6 installation on localhost

**URL:** <https://forum.shopware.com/t/error-in-sw6-installation-on-localhost/98257>\
**Category:** Shopware 6 (English)\
**Tags:** installation--gettin, american-english\
**Created:** [28. Januar 2023 um 19:53 UTC](https://forum.shopware.com/t/error-in-sw6-installation-on-localhost/98257 "2023-01-28T19:53:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan1](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dan1](https://forum.shopware.com/u/Dan1)\
**Post date:** [28. Januar 2023 um 19:53 UTC](https://forum.shopware.com/t/error-in-sw6-installation-on-localhost/98257/1 "2023-01-28T19:53:03Z")

</div>

Hi,  
While setting up the SW6.4.18.1 on my localhost via the MAMP, I am getting the following error on the step Configuration:  
An exception occurred while executing ‚INSERT INTO sales\_channel\_domain (id, sales\_channel\_id, language\_id, url, currency\_id, snippet\_set\_id, custom\_fields, created\_at, updated\_at)  
VALUES (:id, :salesChannelId, :languageId, :url, :currencyId, :snippetSetId, NULL, :createdAt, null)‘ with params [„\x39\x4e\xcb\x3f\x1e\xbe\x42\x29\xab\xc8\x5e\x56\xdc\x81\xcc\x2c“, „\xba\x77\x26\x03\xbf\x7e\x47\x53\xb2\x1a\xe4\x7e\x65\x4b\xa0\x1e“, „\x2f\xbb\x5f\xe2\xe2\x9a\x4d\x70\xaa\x58\x54\xce\x7c\xe3\xe2\x0b“, „http://localhost:8888/Shopware6.4.18.1/public“, „\xb7\xd2\x55\x4b\x0c\xe8\x47\xcd\x82\xf3\xac\x9b\xd1\xc0\xdf\xca“, „\xac\x11\x18\x14\x94\x86\x47\x00\xb9\xb6\xa9\xbf\xa0\xe2\x6d\x50“, „2023-01-28 19:48:49.350“]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚[http://localhost:8888/Shopware6.4.18.1/public](http://localhost:8888/Shopware6.4.18.1/public)‘ for key ‚uniq.sales\_channel\_domain.url‘

Any clue how I can fix this or what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marco.steinhaeuser/32/14512_2.png) [@marco.steinhaeuser](https://forum.shopware.com/u/marco.steinhaeuser)\
**Post date:** [28. Januar 2023 um 23:43 UTC](https://forum.shopware.com/t/error-in-sw6-installation-on-localhost/98257/2 "2023-01-28T23:43:06Z")

</div>

Looks like your database was already in use before. Consider ditching this database and creating a new one. I also found this: [magento - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1922-1' for key 'IDX\_STOCK\_PRODUCT' - Stack Overflow](https://stackoverflow.com/questions/10044062/sqlstate23000-integrity-constraint-violation-1062-duplicate-entry-1922-1-f)
