# Error Received the following error message: SQLSTATE\[42000\]: Syntax error or access violation: 1067

**URL:** <https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133>\
**Category:** Installation/Einstieg\
**Created:** [16. August 2019 um 12:00 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133 "2019-08-16T12:00:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![OtmarD](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@OtmarD](https://forum.shopware.com/u/OtmarD)\
**Post date:** [16. August 2019 um 12:00 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/1 "2019-08-16T12:00:56Z")

</div>

Versuche Shopware 5.6 zu installieren. Erstinstallation auf leerem Webspace.&nbsp;&nbsp;Egal ob mit dem Installer oder per Zip & FTP, mitten im Anlegen der Tabellen geht er auf die Nase.  
Hat jemand eine Idee was da wirklich der Fehler sein könnte?

THX vorab, Otmar

//================================================================

**Error  
Received the following error message:  
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'password\_change\_date’**

**Please try to fix this error and restart the update.  
Response**

_{„query“:„CREATE TABLE `s_user` (\n &nbsp;`id` int(11) NOT NULL AUTO\_INCREMENT,\n &nbsp;`password` varchar(1024) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`encoder` varchar(255) COLLATE utf8\_unicode\_ci NOT NULL DEFAULT ‚md5‘,\n &nbsp;`email` varchar(70) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`active` int(1) NOT NULL DEFAULT ‚0‘,\n &nbsp;`accountmode` int(11) NOT NULL,\n &nbsp;`confirmationkey` varchar(100) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`paymentID` int(11) NOT NULL DEFAULT ‚0‘,\n &nbsp;`doubleOptinRegister` tinyint(1) DEFAULT ‚0‘,\n &nbsp;`doubleOptinEmailSentDate` datetime DEFAULT NULL,\n &nbsp;`doubleOptinConfirmDate` datetime DEFAULT NULL,\n &nbsp;`firstlogin` date NOT NULL DEFAULT ‚0000-00-00‘,\n &nbsp;`lastlogin` datetime NOT NULL DEFAULT ‚0000-00-00 00:00:00‘,\n &nbsp;`sessionID` varchar(128) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`newsletter` int(1) NOT NULL DEFAULT ‚0‘,\n &nbsp;`validation` varchar(255) COLLATE utf8\_unicode\_ci NOT NULL DEFAULT ‚0‘,\n &nbsp;`affiliate` int(10) NOT NULL DEFAULT ‚0‘,\n &nbsp;`customergroup` varchar(15) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`paymentpreset` int(11) NOT NULL,\n &nbsp;`language` varchar(10) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`subshopID` int(11) NOT NULL,\n &nbsp;`referer` varchar(255) COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`pricegroupID` int(11) unsigned DEFAULT NULL,\n &nbsp;`internalcomment` mediumtext COLLATE utf8\_unicode\_ci NOT NULL,\n &nbsp;`failedlogins` int(11) NOT NULL,\n &nbsp;`lockeduntil` datetime DEFAULT NULL,\n &nbsp;`default_billing_address_id` int(11) DEFAULT NULL,\n &nbsp;`default_shipping_address_id` int(11) DEFAULT NULL,\n &nbsp;`title` varchar(100) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`salutation` varchar(30) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`firstname` varchar(255) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`lastname` varchar(255) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`birthday` date DEFAULT NULL,\n &nbsp;`customernumber` varchar(30) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`login_token` varchar(250) COLLATE utf8\_unicode\_ci DEFAULT NULL,\n &nbsp;`changed` datetime DEFAULT NULL,\n &nbsp;`password_change_date` datetime NOT NULL DEFAULT CURRENT\_TIMESTAMP,\n &nbsp;PRIMARY KEY (`id`),\n &nbsp;KEY `email` (`email`),\n &nbsp;KEY `sessionID` (`sessionID`),\n &nbsp;KEY `firstlogin` (`firstlogin`),\n &nbsp;KEY `lastlogin` (`lastlogin`),\n &nbsp;KEY `pricegroupID` (`pricegroupID`),\n &nbsp;KEY `customergroup` (`customergroup`),\n &nbsp;KEY `validation` (`validation`),\n &nbsp;KEY `default_billing_address_id` (`default_billing_address_id`),\n &nbsp;KEY `default_shipping_address_id` (`default_shipping_address_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8\_unicode\_ci“,„success“:false,„offset“:2300,„errorMsg“:„SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for ‚password\_change\_date‘“}_

//================================================================

&nbsp;

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [16. August 2019 um 12:50 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/2 "2019-08-16T12:50:22Z")

</div>

Hm, welche MySQL Version hast du denn im Einsatz?

Könnte sein, dass es an der MySQL-Version liegt. In alten MySQL-Versionen wird "`password_change_date` datetime NOT NULL DEFAULT CURRENT\_TIMESTAMP" gar nicht unterstützt.

---

<div class="post-metadata">

**Author:** ![LivelyTeaching](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LivelyTeaching](https://forum.shopware.com/u/LivelyTeaching)\
**Post date:** [18. August 2019 um 14:17 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/3 "2019-08-18T14:17:28Z")

</div>

Hi!  
Ich habe das selbe Problem. MySQL Version 5.5, InnoDB. Gibt es ein Workaround?

MfG Patrick

> [@R4M schrieb:](https://forum.shopware.com/profile/17170/R4M "R4M")
> 
> Hm, welche MySQL Version hast du denn im Einsatz?
> 
> Könnte sein, dass es an der MySQL-Version liegt. In alten MySQL-Versionen wird „`password_change_date` datetime NOT NULL DEFAULT CURRENT\_TIMESTAMP“ gar nicht unterstützt.

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [18. August 2019 um 14:22 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/4 "2019-08-18T14:22:50Z")

</div>

Du brauchst mindestens MySQL 5.7 für Shopware 5.6

---

<div class="post-metadata">

**Author:** ![LivelyTeaching](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LivelyTeaching](https://forum.shopware.com/u/LivelyTeaching)\
**Post date:** [18. August 2019 um 14:30 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/5 "2019-08-18T14:30:36Z")

</div>

Recht herzlichen Dank! Hab ein Update beantragt 🙂

MfG Patrick

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Du brauchst mindestens MySQL 5.7 für Shopware 5.6

---

<div class="post-metadata">

**Author:** ![OtmarD](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@OtmarD](https://forum.shopware.com/u/OtmarD)\
**Post date:** [19. August 2019 um 05:43 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/6 "2019-08-19T05:43:18Z")

</div>

THX für den Hint! Habe auf unserem Server&nbsp;Version: 5.5.60-MariaDB vorgefunden. Sehr spannend 😉

Vielen Dank @ all!

Otmar

&nbsp;

---

<div class="post-metadata">

**Author:** ![Strelitzer](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@Strelitzer](https://forum.shopware.com/u/Strelitzer)\
**Post date:** [7. Oktober 2019 um 11:19 UTC](https://forum.shopware.com/t/error-received-the-following-error-message-sqlstate-42000-syntax-error-or-access-violation-1067/61133/7 "2019-10-07T11:19:49Z")

</div>

> Installer schrieb:
> 
> Systemvoraussetzungen
> 
> **Glückwunsch!**  
> Alle Voraussetzungen für eine erfolgreiche Installation sind erfüllt

Das ist dann nicht besonders hilfreich.&nbsp;  
Was mir die Installtion ermöglichte:  
siehe: recovery/install/data/sql/install.sql:7525  
&nbsp;&nbsp; `password_change_date` datetime NOT NULL DEFAULT CURRENT\_TIMESTAMP,  
ändern zu  
&nbsp; `password_change_date` datetime NOT NULL DEFAULT ‚0000-00-00 00:00:00‘,  
Damit kann man zumindest einmal installieren und auch einen Kunden anlegen.

&nbsp;

&nbsp;

&nbsp;
