具有消息的“PDOException”的例外“SQLSTATE”[HY000]:常规错误:1293 Setup Magento 2.0(0.1.0-alpha107)时的表定义不正确
题
今天我设置了Magento 2.0的版本(构建0.1.0-alpha107)。但该过程陷入了23%,错误:
Exception 'PDOException' with the message 'SQLSTATE[HY000]: General error: 1293 Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause'.
.
以下是错误日志的一些碎片:
模块'magento_sales': 包括
/Applications/MAMP/htdocs/magento/app/code/Magento/Sales/sql/sales_setup/install-2.0.0.php
[ERROR] exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1293 Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause' in /Applications/MAMP/htdocs/magento/setup/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228
. 解决方案
您需要升级到MySQL 5.6
来源: https://github.com/magento/magento2/issues/782
magento 2要求: https://github.com/magento/magento2#magento-2-system-要求