php - 异常 'PDOException',消息为“SQLSTATE[HY000] : General error: 1293 Incorrect table definition when setup Magento 2. 0 (0.1.0-alpha107)”

标签 php mysql magento pdo

今天我安装了洋红色 2.0 版本(内部版本 0.1.0-alpha107)。但该过程一直停留在 23%,并出现错误:

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

您能看一下错误,并建议我一个解决方案吗?

最佳答案

关于php - 异常 'PDOException',消息为“SQLSTATE[HY000] : General error: 1293 Incorrect table definition when setup Magento 2. 0 (0.1.0-alpha107)”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27346436/

相关文章:

php - 处理两个不同的表时如何从表中删除记录

php - 如何计算与服务器时间的时差?

php - PDO MySQL 查询只返回一组结果

php - Magento错误magento SQLSTATE[23000] : Integrity constraint violation: 1062 Duplicate entry

magento - 登录用户的税费计算

php - 在 array_filter 中使用外部变量

MySQL:使用 ORDER BY 和 UNION

mysql innodb :innodb_flush_method

mysql - 为什么使用 left join+where select 会慢很多

.htaccess - Magento 使用 302 重定向到基本 url,我如何让它使用 301