0
今天,我設置了一個版本的洋紅色2.0(建立0.1.0 alpha107)。但這個過程已經stucked爲23%,出現錯誤:異常'PDOException'與消息'SQLSTATE [HY000]:一般錯誤:1293安裝Magento 2.0時的錯誤表定義(0.1.0-alpha107)
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'
下面是錯誤日誌的一些作品:
Module 'Magento_Sales':
Include /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不允許在更新非TIMESTAMP的日期時間數據類型的默認值。我想你有MySQL版本小於5.5 http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html – 2014-12-07 19:00:19